-
Notifications
You must be signed in to change notification settings - Fork 84
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
Use ignition only when Ignition is set in IBMPowerVSCluster #2037
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-ibmcloud ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/hold Trying to see if some rearrange of code might fix the issue. |
5e43c6e
to
0e45c4e
Compare
Ready for review. Will unhold after some testing. |
0e45c4e
to
dcff9f5
Compare
@@ -289,9 +289,11 @@ func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerV | |||
return ctrl.Result{RequeueAfter: 2 * time.Minute}, nil | |||
} | |||
|
|||
if !scope.CheckCreateInfraAnnotation(*machineScope.IBMPowerVSCluster) { | |||
if machineScope.IBMPowerVSCluster.Spec.VPC == nil || machineScope.IBMPowerVSCluster.Spec.VPC.Region == 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.
We wont be setting CreateInfra Annotatio on clusters where the cluster is externally managed but still want to configure machines to LB.
So relaying on VPC to be nil or non nil to identify the code paths.
When CreateInfraAnotation is set we have a webhook to make sure VPC is non nil.
dcff9f5
to
dd989c4
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.
/lgtm
dd989c4
to
56178e5
Compare
@Karthik-K-N: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed 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.
/hold
for others to review
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Amulyam24, Karthik-K-N, mkumatag 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 |
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.
/lgtm
/unhold
What this PR does / why we need it:
This PR allows to create cos bucket and push ignition data to it only when IBMPowerVSCluster.Spec.Ignition is set because COS Instance is created only when this is set.
Even if user data format is ignition and IBMPowerVSCluster.Spec.Ignition is nil, the code will eventually fail to fetch cos instance as it might not be created.
Removed create infra anotation checks in machine controller as it might not needed.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
/area provider/ibmcloud
Release note: