This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Offer auto-delete on invalid update operation for managed resources #69
Merged
timuthy
merged 1 commit into
gardener-attic:master
from
rfranzke:feature/delete-on-forbidden-changes
Jul 15, 2020
Merged
Offer auto-delete on invalid update operation for managed resources #69
timuthy
merged 1 commit into
gardener-attic:master
from
rfranzke:feature/delete-on-forbidden-changes
Jul 15, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gardener-robot
added
area/usability
Usability related
kind/enhancement
Enhancement, improvement, extension
priority/normal
labels
Jul 2, 2020
gardener-robot-ci-2
added
reviewed/ok-to-test
Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
needs/ok-to-test
Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
and removed
reviewed/ok-to-test
Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
labels
Jul 2, 2020
rfranzke
force-pushed
the
feature/delete-on-forbidden-changes
branch
from
July 2, 2020 11:22
5379456
to
5496754
Compare
gardener-robot-ci-1
added
the
reviewed/ok-to-test
Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
label
Jul 2, 2020
gardener-robot-ci-2
removed
the
reviewed/ok-to-test
Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
label
Jul 2, 2020
/needs/rebase |
gardener-robot
added
needs/rebase
Needs git rebase
status/author-action
Issue requires issue author action
labels
Jul 3, 2020
@rfranzke The pull request was assigned to you under |
rfranzke
force-pushed
the
feature/delete-on-forbidden-changes
branch
from
July 3, 2020 09:37
5496754
to
47c49a8
Compare
/unassign |
gardener-robot-ci-1
added
the
reviewed/ok-to-test
Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
label
Jul 3, 2020
gardener-robot
added
needs/review
Needs review
and removed
needs/rebase
Needs git rebase
labels
Jul 3, 2020
gardener-robot-ci-3
removed
the
reviewed/ok-to-test
Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
label
Jul 3, 2020
gardener-robot
removed
the
status/author-action
Issue requires issue author action
label
Jul 3, 2020
/assign |
timuthy
approved these changes
Jul 15, 2020
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.
Nice, I also tested it locally and it worked as expected.
/lgtm
gardener-robot
added
reviewed/lgtm
Has approval for merging
and removed
needs/review
Needs review
labels
Jul 15, 2020
This was referenced Aug 13, 2020
Merged
Merged
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area/usability
Usability related
kind/enhancement
Enhancement, improvement, extension
needs/ok-to-test
Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
reviewed/lgtm
Has approval for merging
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
How to categorize this PR?
/area usability
/kind enhancement
/priority normal
What this PR does / why we need it:
The
ManagedResource
controller is now capable of auto-deleting a resource in case an update fails with the "invalid" error and the resource is properly annotated to allow this behaviour.This is useful if a managed resource, e.g. a
StorageClass
orPod
, shall be updated and those updates are not allowed by the API server.Special notes for your reviewer:
The Kubernetes API server sends a
422 Unprocessable Entity
error in case it static validation fails. Unfortunately, its status codes returned on errors of admission plugins as well as the status codes returned by (validating) admission webhooks are not necessarily streamlined. Consequently, I decided to exclude those cases for now and limit the solution on errors happening during static validation. Probably, this is fine for the vast majority of our use-cases within the Gardener project.Release note: