🐛 Allow setting empty tolerations on provider deployments#1034
🐛 Allow setting empty tolerations on provider deployments#1034tahsinrahman wants to merge 1 commit into
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-operator ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Welcome @tahsinrahman! |
|
Hi @tahsinrahman. 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 Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
5787bae to
e4c9a7b
Compare
|
/ok-to-test |
|
Hey, this needs a commit message to be fixed (remove mentioning issues, i.e closes #1018) |
Danil-Grigorev
left a comment
There was a problem hiding this comment.
Looks good in general, though ptr.To should be used instead.
e4c9a7b to
b8974a4
Compare
|
thanks for your review @Danil-Grigorev @furkatgofurov7 , i've updated |
|
/retest |
4 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
CI is failing due to the api changes. not sure what is the way forward here |
b8974a4 to
a15ed35
Compare
|
@tahsinrahman: 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. DetailsInstructions 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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Danil-Grigorev The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@tahsinrahman hi, can you rebase? |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 33de1e59d9794cc61eb3b59d4f37922a92e832f3 |
What this PR does / why we need it:
Changes
DeploymentSpec.Tolerationsfrom[]corev1.Tolerationto*[]corev1.Tolerationso the three states — unset (nil), explicitly empty (&[]), and non-empty — are distinguishable.Previously, setting
spec.deployment.tolerations: []produced the same json.Marshal output as not setting tolerations at all (null vs [] both marshal identically for a bare slice). This meant the provider cache hash did not change, stale cached manifests were reused, and upstream tolerations (e.g.node-role.kubernetes.io/control-plane) remained on the provider Deployment.With the pointer, json.Marshal emits
"tolerations":nullvs"tolerations":[], producing different hashes and triggering a proper re-reconciliation.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 #1018