Bug 1827050: Update to use revised ApplyDeployment#272
Bug 1827050: Update to use revised ApplyDeployment#272marun wants to merge 2 commits intoopenshift:masterfrom marun:cleanup-condition-handling
Conversation
The new method hashes the spec of the deployment which removes the need for considering generation or forcing rollout.
|
/retest |
|
|
||
| // Ensure a rollout when the bootstrap user goes away | ||
| if bootstrapUserExists { | ||
| deployment.Spec.Template.Annotations["operator.openshift.io/bootstrap-user-exists"] = "true" |
There was a problem hiding this comment.
do you think we should name annotation to imply CAO?
There was a problem hiding this comment.
I don't think there's a need for that now, and this is not an API so we can change it anytime in the future.
nit: you could just deployment.Spec.Template.Annotations["operator.openshift.io/bootstrap-user-exists"] = fmt.Sprintf("%v", bootstrapUserExists) to avoid conditions
There was a problem hiding this comment.
Why is it desirable to avoid conditions? I think the absence of an annotation is as good a signal as one with a value of "false".
|
one single comment, otherwise /lgtm |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marun, stlaz, vareti 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 |
|
/retitle Bug 1827050: Update to use revised ApplyDeployment |
|
@marun: This pull request references Bugzilla bug 1827050, which is invalid:
Comment DetailsIn 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 kubernetes/test-infra repository. |
|
/bugzilla refresh |
|
@marun: This pull request references Bugzilla bug 1827050, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn 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 kubernetes/test-infra repository. |
|
/hold I will update tomorrow morning. |
|
@marun: PR needs rebase. 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/test-infra repository. |
|
Committed with #282 |
The new method hashes the spec of the deployment which removes the need for forcing rollout.
/cc @deads2k @stlaz