-
Notifications
You must be signed in to change notification settings - Fork 526
Fix shoot reconciliation after credentials rotation if manual in-place pending workers are updated #12290
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
Conversation
/cherry-pick release-v1.121 |
@shafeeqes: once the present PR merges, I will cherry-pick it on top of release-v1.121 in a new PR and assign it to you. In 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-sigs/prow repository. |
/cherry-pick release-v1.120 |
@shafeeqes: once the present PR merges, I will cherry-pick it on top of release-v1.120 in a new PR and assign it to you. In 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-sigs/prow repository. |
/cherry-pick release-v1.119 |
@shafeeqes: once the present PR merges, I will cherry-pick it on top of release-v1.119 in a new PR and assign it to you. In 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-sigs/prow repository. |
/cherry-pick release-v1.118 |
@shafeeqes: once the present PR merges, I will cherry-pick it on top of release-v1.118 in a new PR and assign it to you. In 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-sigs/prow repository. |
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
/approve
/retest
LGTM label has been added. Git tree hash: 477952c0b58543771a3051f95c8296f91559a121
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rfranzke 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 |
/retest |
/test pull-gardener-e2e-kind-ha-multi-zone |
@shafeeqes: new pull request created: #12303 In 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-sigs/prow repository. |
@shafeeqes: new pull request created: #12304 In 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-sigs/prow repository. |
@shafeeqes: new pull request created: #12305 In 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-sigs/prow repository. |
@shafeeqes: new pull request created: #12306 In 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-sigs/prow repository. |
How to categorize this PR?
/area quality
/kind bug
What this PR does / why we need it:
In the Shoot reconciliation flow, we don't set the
credentialsRotation
status toPrepared
if there are manual in-place workers pending update. When they are updated, shoot status reconciler will annotate the shoot withgardener.cloud/operation=reconcile
,gardener/pkg/gardenlet/controller/shoot/status/reconciler.go
Lines 163 to 175 in 4c7ae4a
so that the reconcile flow is run again and the status is set to
Prepared
. However if the shoot status is updated with zero manual in place update pending workers,gardener/pkg/gardenlet/controller/shoot/status/reconciler.go
Lines 153 to 156 in 4c7ae4a
and the above patching of shoot with operation annotation fails, the next time the reconciliation is retried, we exit early:
gardener/pkg/gardenlet/controller/shoot/status/reconciler.go
Lines 79 to 82 in 4c7ae4a
This is not ideal and can cause failures like the one below.
This PR fixes this behaviour.
Thanks @rfranzke for reporting.
Which issue(s) this PR fixes:
Fixes failures like: https://prow.gardener.cloud/view/gs/gardener-prow/pr-logs/pull/gardener_gardener/12213/pull-gardener-e2e-kind-ha-multi-zone/1932519479678341120
Special notes for your reviewer:
Release note: