-
Notifications
You must be signed in to change notification settings - Fork 93
Enhanced updateCondition function #2135
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
Enhanced updateCondition function #2135
Conversation
|
Welcome @pjsharath28! |
Hi @pjsharath28. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-ibmcloud ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/ok-to-test |
@pjsharath28 update release note to -> |
/lgtm |
@dharaneeshvrd Please take a look when you get some time. /hold till then |
/unhold |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pjsharath28, Prajyot-Parab 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 |
What this PR does / why we need it:
The existing implementation of
updateCondition
in IBM PowerVS Cluster Controller was a bit problematic as it expected interface type, Without the length and type check we could run into null pointer dereferencing and index out of bound conditions. This PR helps resolve the same.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 #2115
Special notes for your reviewer:
For testing my changes, I made a local setup using tilt and created the cluster using following command:
I observed that the conditions were true for all resources as shown below:
/area provider/ibmcloud
Release note: