Last active
November 5, 2019 07:51
-
-
Save rms1000watt/3d76eb2f3c64a87b92acb97ebdbd9c66 to your computer and use it in GitHub Desktop.
Edit helm state.. update the release status of a helm deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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