Skip to content

chore: update spectrum-x manifests #1547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rollandf
Copy link
Member

@rollandf rollandf commented Jun 5, 2025

No description provided.

@rollandf rollandf added the on hold This enhancement is currently on hold pending additional clarification and evaluation label Jun 5, 2025
@coveralls
Copy link
Collaborator

coveralls commented Jun 5, 2025

Pull Request Test Coverage Report for Build 15583805418

Details

  • 3 of 5 (60.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 60.058%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/state/state_spectrumx.go 3 5 60.0%
Totals Coverage Status
Change from base Build 15579268967: 0.02%
Covered Lines: 3523
Relevant Lines: 5866

💛 - Coveralls

@rollandf rollandf requested a review from Copilot June 5, 2025 09:25
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Spectrum‑X manifests and related test and state code to reflect a refactored operator design and new configuration patterns. Key changes include:

  • Updates to test code to use a separate catalog variable and revised manifest object counts.
  • Modifications to state rendering to incorporate static configuration and a new CNI binary directory.
  • Removal of obsolete Spectrum‑X configuration references and manifest files.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/state/state_spectrumx_test.go Updated tests to use a dedicated catalog and adjusted manifest object expectations
pkg/state/state_spectrumx.go Added static config support and CNI binary directory in runtime spec; removed Deployment watch source
manifests/state-spectrum-x-operator/0050-flowcontroller-ds.yaml Added an init container for copying the rail CNI binaries and new volume mount based on CNI bin directory
manifests/state-spectrum-x-operator/0040-spectrumx-operator.yaml Removed obsolete deployment manifest
manifests/state-spectrum-x-operator/0020-role.yaml, hack/release.yaml, and others Minor updates to RBAC rules and version bump to support the changes in operator configuration
Comments suppressed due to low confidence (3)

pkg/state/state_spectrumx_test.go:47

  • The manifest object count expectation was reduced from 5 to 4. Please add a brief comment or ensure that the test clearly reflects the updated catalog contents so future maintainers understand the change.
Expect(len(objs)).To(Equal(4))

pkg/state/state_spectrumx.go:134

  • The watch source for 'Deployment' was removed. Confirm that no dependencies rely on it, and if necessary, update the documentation to reflect this design decision.
wr["Deployment"] = &appsv1.Deployment{}

manifests/state-spectrum-x-operator/0040-spectrumx-operator.yaml:1

  • The entire Spectrum‑X operator deployment manifest was removed. Ensure that external dependencies and documentation are updated to reflect this removal.
-apiVersion: apps/v1

@rollandf rollandf changed the title WIP chore: update spectrum-x manifests chore: update spectrum-x manifests Jun 5, 2025
@rollandf rollandf removed the on hold This enhancement is currently on hold pending additional clarification and evaluation label Jun 5, 2025
almaslennikov
almaslennikov previously approved these changes Jun 6, 2025
}

// NicClusterPolicySpec defines the desired state of NicClusterPolicy
// +kubebuilder:pruning:PreserveUnknownFields
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this related to SpectrumX changes or its more of a general change in NCP?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it

})

Context("should render", func() {
It("Kubernetes manifests", func() {
cr := getSpectrumXOperator()
objs, err := ts.renderer.GetManifestObjects(ts.context, cr, ts.catalog, testLogger)
objs, err := ts.renderer.GetManifestObjects(ts.context, cr, catalog, testLogger)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between ts.catalog and catalog? if you go with catalog, I still see below usage of it.

Copy link
Member Author

@rollandf rollandf Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

catalog is a var, not the default one.
Updated to use it in all places

almaslennikov
almaslennikov previously approved these changes Jun 11, 2025
@almaslennikov
Copy link
Collaborator

/retest-nic_operator_helm

@rollandf
Copy link
Member Author

/retest-nic_operator_helm

1 similar comment
@rollandf
Copy link
Member Author

/retest-nic_operator_helm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants