remove-k8s-ns-finalizers

command module
v0.0.0-...-6e02eed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

Remove-k8s-ns-finalizers

Note: Due to not having a Windows/MacOS system, this tool has been untested on those platforms!

Note 2: Only use this tool if you know what you're doing! Removing finalizers can have severe consequences!

Sometimes a Kubernetes namespaces is 'stuck' in the Terminating phase. This is in most cases, because there is some finalizer left that isn't handled.

Via some manual API calls, this can be fixed, see for instance:

This simple tool automates this step with a single command.

Usage

Make sure you're logged into the right cluster and switched to the right k8s context.

After that, just execute this command with the namespace you want to finalize/terminate as its argument:

$ ./remove-k8s-ns-finalizers your-namespace

How to build

Make sure you have a recent version of Go (tested with 1.14), after that just call make:

$ make

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL