{{- define "printer" -}}
{{- $topctx := .ctx }}
- {{- if hasKey $topctx.Values "global" }}
- {{- if hasKey $topctx.Values.global "tillers" }}
- {{- $ctx := index $topctx.Values.global.tillers .key -}}
+ {{- if hasKey $topctx.Values "common" }}
+ {{- if hasKey $topctx.Values.common "tillers" }}
+ {{- $ctx := index $topctx.Values.common.tillers .key -}}
{{- if not (empty $ctx) -}}
{{- $newctx := dict "ctx" $ctx "printkeys" .printkey -}}
{{- include "recursiveprinter" $newctx -}}
{{- default false (include "printer" $newctx) -}}
{{- end -}}
+
{{- define "common.tillerHelmClientTLSSecret" -}}
{{- $tlsverify := include "common.tillerTLSVerify" . }}
{{- $tlsauthenticate := include "common.tillerTLSAuthenticate" . }}
{{- end -}}
-
-
{{- define "common.serviceaccountname.tiller" -}}
{{- $name := ( include "common.tillerName" . ) -}}
{{- printf "svcacct-tiller-%s" $name | trunc 63 | trimSuffix "-" -}}
{{- define "common.servicename.tiller" -}}
{{- $topctx := .ctx }}
- {{- if hasKey $topctx.Values "global" }}
- {{- if hasKey $topctx.Values.global "tillers" }}
- {{- $ctx := index $topctx.Values.global.tillers .key -}}
+ {{- if hasKey $topctx.Values "common" }}
+ {{- if hasKey $topctx.Values.common "tillers" }}
+ {{- $ctx := index $topctx.Values.common.tillers .key -}}
{{- if not (empty $ctx) -}}
{{- if hasKey $ctx "name" -}}
{{- $name := include "common.tillerName" . -}}