Created
January 2, 2020 19:11
-
-
Save zloeber/b8e2f06a4198ef3a2db81532838d6a03 to your computer and use it in GitHub Desktop.
Helmfile: presync hook namespace creation
This file contains 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
- 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