Skip to content
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

force the namespace deletion by updating the finalizers in the namespace obj #112

Merged
merged 8 commits into from
Mar 4, 2019

Conversation

cpanato
Copy link
Member

@cpanato cpanato commented Feb 18, 2019

What this PR does / why we need it:
After the namespace deletion sometimes the namespace get stuck in the Terminating phase forever and we need to use the script from @unguiculus (https://gist.github.com/unguiculus/d915e911ba04f1f97ecea4f617a2eef5) to remove the namespaces.

This PR introduces the same login in the bash script to the chart-testing, when we check if the namespace still exists we apply the logic to force remove the namespace.

note: for example, last week in the Helm Chart CI Cluster we had around 900 namespaces in Terminating phase.

pkg/exec/exec.go Outdated Show resolved Hide resolved
pkg/tool/kubectl.go Outdated Show resolved Hide resolved
Copy link
Member

@unguiculus unguiculus left a comment

Choose a reason for hiding this comment

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

Thanks.

@helm-bot helm-bot added size/L and removed size/M labels Feb 28, 2019
@unguiculus unguiculus self-assigned this Feb 28, 2019
@helm-bot helm-bot added size/L and removed size/L labels Mar 1, 2019
@helm-bot helm-bot added size/L and removed size/L labels Mar 1, 2019
@unguiculus unguiculus force-pushed the force-namespace-deletion branch from 7ca0eaa to 1bfceb5 Compare March 1, 2019 16:44
@helm-bot helm-bot added size/L and removed size/L labels Mar 1, 2019
@helm-bot helm-bot added size/L and removed size/L labels Mar 1, 2019
Copy link
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@unguiculus unguiculus merged commit 010642b into helm:master Mar 4, 2019
@cpanato cpanato deleted the force-namespace-deletion branch March 4, 2019 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants