daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {{/*
  2. Create the env yaml sequence.
  3. The sequence is created by combining the values in .Values.env.override
  4. and .Values.env.default, giving precedence to the values in override.
  5. */}}
  6. {{- define "servicename.env" -}}
  7. {{- $overrides := dict -}}
  8. {{- range $_, $v := .Values.env.override -}}
  9. {{- $_ := set $overrides $v.name $v.value -}}
  10. {{- end -}}
  11.  
  12. {{- $defaults := dict -}}
  13. {{- range $_, $v := .Values.env.default -}}
  14. {{- $_ := set $defaults $v.name $v.value -}}
  15. {{- end -}}
  16.  
  17. {{- range $name, $value := merge $overrides $defaults -}}
  18. - name: {{ $name }}
  19.   value: {{ $value | quote }}
  20. {{ end -}}
  21. {{- end -}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top