Skip to content

golonzovsky/k8s-clean-kubectl-mf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cleanup kubectl field owners

You deployed thing with helm and edited some object with kubectl?
Now helm rollback doesent work and neither new helm deployments?

Well, for some reason kubectl is considered a valid resource owner in k8s despite not being active controller in cluster.
Yes, you can do helm rollback --force, but it will mess up active HPAs and other stuff.

Here we clean up this nonsense.

k8s-clean-kubectl-mf --dry-run=false --log-level=debug

todo

  • service mode to listen for changes instead of full scan
  • cleanup last applied annotation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages