-
Notifications
You must be signed in to change notification settings - Fork 526
Introduce Seed
annotation to temporarily disable Shoot
reconciliations
#12712
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
Introduce Seed
annotation to temporarily disable Shoot
reconciliations
#12712
Conversation
- gardenlet Shoot controller's ShouldReconcileNow is added a reason to log - shoot.status.lastOperation is filled with Pending state so that further annotations to the Shoot after the annotation has been removed lead to a generation increase and thus a reconciliation. See: https://github.com/gardener/gardener/blob/874791cb97e96d622c994c6cc8ef4091fc9e9102/pkg/apiserver/registry/core/shoot/strategy.go#L101 Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
… status - Extract `HasShootReconciliationsDisabledAnnotation` fn Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
…oot` reconciliation Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
/assign |
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.
Thanks a lot for this nice enhancement, which makes the life of operators easier in case problems arise.
- improve docs - improve var and const namings - condense seed health check regarding emergency annotation - add test cases Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
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
LGTM label has been added. Git tree hash: 68c2d9d534b2940b704c53d59e4e14ec043e7736
|
Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
4a76da0
to
8e534a0
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
LGTM label has been added. Git tree hash: c8829a51daa3b339c045e60117b60b07ca351da1
|
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rfranzke, ScheererJ 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 |
…tions (gardener#12712) * Add `Seed` annotation to temporarily disable `Shoot` reconciliations - gardenlet Shoot controller's ShouldReconcileNow is added a reason to log - shoot.status.lastOperation is filled with Pending state so that further annotations to the Shoot after the annotation has been removed lead to a generation increase and thus a reconciliation. See: https://github.com/gardener/gardener/blob/874791cb97e96d622c994c6cc8ef4091fc9e9102/pkg/apiserver/registry/core/shoot/strategy.go#L101 Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Expose condition about disabled `Shoot` reconciliations in the `Seed` status - Extract `HasShootReconciliationsDisabledAnnotation` fn Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Do not schedule new `Shoot`s to `Seeds` with temporarily disabled `Shoot` reconciliation Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Add documentation about the annotation for seed operations Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Address review feedback - improve docs - improve var and const namings - condense seed health check regarding emergency annotation - add test cases Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> * Address review feedback (2) Signed-off-by: Luca Bernstein <luca.bernstein@sap.com> --------- Signed-off-by: Luca Bernstein <luca.bernstein@sap.com>
How to categorize this PR?
/area ops-productivity robustness
/kind enhancement
What this PR does / why we need it:
There may be situations where you need to temporarily stop the reconciliation of
Shoot
clusters in aSeed
cluster.This can be achieved by adding the annotation
gardener.cloud/disable-shoot-reconciliations=true
to theSeed
resource.While this annotation is present:
Seed
controller will not reconcile anyShoot
clusters in the affectedSeed
.Shoot
clusters will not be scheduled to thisSeed
.Seed
will expose theSeedDisabledShootReconciliations
condition.Which issue(s) this PR fixes:
Fixes #12528
Special notes for your reviewer:
/cc @rfranzke @ScheererJ
Release note: