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
common-instancetypes: Add DeployCommonInstancetypes featureGate #702
common-instancetypes: Add DeployCommonInstancetypes featureGate #702
Conversation
Skipping CI for Draft Pull Request. |
/cc sradco |
_, err = operand.Reconcile(&request) | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
virtualMachineClusterInstancetypes, err := FetchBundleResource[instancetypev1beta1.VirtualMachineClusterInstancetype](instancetypePath) |
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.
Can you access operand.virtualMachineClusterInstancetypes
and operand.virtualMachineClusterPreferences
here instead of creating a separate list of resources?
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.
Then we'd just be asserting that the resources the operand knows about have been reconciled. Appreciate it's the same code but I wanted to be ensure that the expected resources are reconciled here.
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.
ACK
Co-authored-by: Felix Matouschek <fmatouschek@redhat.com> Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
fbc62f6
to
0ee1e2a
Compare
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.
Nice job once again! Thanks for taking Lee's PR in his absence :)
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akrejcir 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 |
0ee1e2a
to
fa11da3
Compare
/lgtm |
/retest-required |
This change adds a simple DeployCommonInstancetypes feature gate to the SSP CR. This feature gate defaults to true to keep the original behaviour of the common-instancetypes operand. When disabled, any previously deployed resources are removed. Co-authored-by: Felix Matouschek <fmatouschek@redhat.com> Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
fa11da3
to
7648d29
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/lgtm |
What this PR does / why we need it:
Based on #661
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: