-
Notifications
You must be signed in to change notification settings - Fork 73
OCPCLOUD-2514: Remove reliance on feature gates for whether to deploy CCMs #334
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
OCPCLOUD-2514: Remove reliance on feature gates for whether to deploy CCMs #334
Conversation
|
@JoelSpeed: This pull request references OCPCLOUD-2514 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
elmiko
left a comment
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.
happy to approve this, just a quick question
| []configv1.FeatureGateName{configv1.FeatureGateExternalCloudProvider}, | ||
| nil, | ||
| ) | ||
| featureGateAccessor := featuregates.NewHardcodedFeatureGateAccess(nil, nil) |
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.
just a question, looking at the tests it seems like we can factor out this variable. what am i missing?
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.
The clusteroperator still uses a featuregateaccess underneath to render feature gates for the operand resources, so I had left it in, in case we need to update the cases, but, I think you're right, that would probably be tested elsewhere so we maybe don't need it in the test cases here
d93b1d7 to
a292ad6
Compare
| coStatus: coStatus, | ||
| expectProvisioned: false, | ||
| }), | ||
| Entry("Should provision resources for AWS if external FeatureGate is not present", testCase{ |
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.
This case ended up being identical to another case
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.
yay for cleanup!
elmiko
left a comment
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.
/approve
/lgtm
|
the e2e errors /seem/ unrelated |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: elmiko The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
saw this error on the kcmo update as well, not sure what they mean though: that doesn't seem related to this change |
|
/retest |
|
@JoelSpeed: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
[ART PR BUILD NOTIFIER] This PR has been included in build ose-cluster-cloud-controller-manager-operator-container-v4.16.0-202403011810.p0.g2d2016b.assembly.stream.el9 for distgit ose-cluster-cloud-controller-manager-operator. |
We no longer need to observe the cloud provider external feature gates to determine if the CCMs should be applied or not. Now, only the platform type is observed.
This PR cleans up the references I could find to using a feature gate for external cloud provider enablement.