-
Notifications
You must be signed in to change notification settings - Fork 61
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
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 15583805418Details
💛 - Coveralls |
There was a problem hiding this 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
} | ||
|
||
// NicClusterPolicySpec defines the desired state of NicClusterPolicy | ||
// +kubebuilder:pruning:PreserveUnknownFields |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Signed-off-by: Fred Rolland <[email protected]>
/retest-nic_operator_helm |
/retest-nic_operator_helm |
1 similar comment
/retest-nic_operator_helm |
No description provided.