Skip to content

Instantly share code, notes, and snippets.

@zloeber
Created January 2, 2020 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zloeber/b8e2f06a4198ef3a2db81532838d6a03 to your computer and use it in GitHub Desktop.
Save zloeber/b8e2f06a4198ef3a2db81532838d6a03 to your computer and use it in GitHub Desktop.
Helmfile: presync hook namespace creation
- events: ["presync"]
showlogs: true
command: "/bin/sh"
args:
- "-c"
- >-
kubectl get namespace "{{`{{ .Release.Namespace }}`}}" >/dev/null 2>&1 || kubectl create namespace "{{`{{ .Release.Namespace }}`}}";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment