Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Last active November 5, 2019 07:51
Show Gist options
  • Save rms1000watt/3d76eb2f3c64a87b92acb97ebdbd9c66 to your computer and use it in GitHub Desktop.
Save rms1000watt/3d76eb2f3c64a87b92acb97ebdbd9c66 to your computer and use it in GitHub Desktop.
Edit helm state.. update the release status of a helm deployment
go get github.com/helm/helm
cd $(go env GOPATH)/src/github.com/helm/helm/_proto
kubectl -n kube-system get cm hello-world.v1 -o yaml | grep release | cut -d' ' -f4 | base64 -D | gunzip | protoc --decode hapi.release.Release hapi/**/* > ~/Desktop/hello-world.v1.protod
# Edit this file to DEPLOYED
cat ~/Desktop/hello-world.v1.protod | protoc --encode hapi.release.Release hapi/**/* | gzip | base64 | pbcopy
kubectl -n kube-system edit cm hell-world.v1
# Update the release with the value in your clipboard
# Also update metadata.labels.STATUS to DEPLOYED so the protobuf matches this label STATUS
helm ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment