Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Webhook validates deletion #392

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

hihilla
Copy link
Contributor

@hihilla hihilla commented Apr 7, 2021

This adds Delete action to validating webhook.
This is necessary for when there's a rollout block and a user is not aware. In this case, the user might delete the contender, but shipper will not reactivate the incumbent.

Shipper will also populate override annotations from releases to owning applications, to prevent a case where an overriding release is deleted, but the application is not overriding the block so Shipper will not reactivated incumbent release.

@hihilla hihilla force-pushed the hilla/CRUNTIME-498-webhook-validate-delete branch from ecf0cbe to 4cb6bec Compare April 7, 2021 12:51
pkg/webhook/webhook.go Outdated Show resolved Hide resolved
pkg/webhook/webhook.go Outdated Show resolved Hide resolved
pkg/webhook/webhook.go Outdated Show resolved Hide resolved
pkg/webhook/webhook.go Outdated Show resolved Hide resolved
pkg/webhook/webhook.go Outdated Show resolved Hide resolved
pkg/webhook/webhook.go Outdated Show resolved Hide resolved
This adds Delete action to validating webhook.
This is necessary for when there's a rollout block and a user is not aware. In this case, the user might delete the contender, but shipper will not reactivate the incumbent.

Shipper will also populate override annotations from releases to owning applications, to prevent a case where an overriding release is deleted, but the application is not overriding the block so Shipper will not reactivated incumbent release.
@hihilla hihilla force-pushed the hilla/CRUNTIME-498-webhook-validate-delete branch from 4cb6bec to ad7bde0 Compare April 12, 2021 08:08
Copy link
Contributor

@nikoloup nikoloup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hihilla hihilla merged commit 5c34d55 into master Apr 13, 2021
@hihilla hihilla deleted the hilla/CRUNTIME-498-webhook-validate-delete branch April 13, 2021 09:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants