Skip to content

Instantly share code, notes, and snippets.

@silasb
Last active September 27, 2019 14:50
Show Gist options
  • Save silasb/5a875ee530265a1f516b779e927e5830 to your computer and use it in GitHub Desktop.
Save silasb/5a875ee530265a1f516b779e927e5830 to your computer and use it in GitHub Desktop.
apiVersion: v1
name: blah
version: 1
value: {{ .Values.env_name }}
data:
services:
{{- range $key, $val := .Values.services }}
{{ $key }}:
branch: {{ $val.branch }}
{{- end }}
#!/bin/bash
helm template . -x templates/manifest.yaml --set services.api.branch=funny --set services.frontend.branch=something
services:
app:
branch: master
@silasb
Copy link
Author

silasb commented Sep 27, 2019

Need to move manifest.yaml into templates directory to get this to work because that is how helm works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment