rke2-charts/charts/rke2-kube-proxy-1.19/rke2-kube-proxy/v1.19.12-build2021071403/templates/_helpers.tpl

22 lines
623 B
Smarty
Executable File

{{- define "system_default_registry" -}}
{{- if .Values.global.systemDefaultRegistry -}}
{{- printf "%s/" .Values.global.systemDefaultRegistry -}}
{{- else -}}
{{- "" -}}
{{- end -}}
{{- end -}}
{{- define "rke2_data_dir" -}}
{{- if .Values.global.rke2DataDir -}}
{{- printf "%s" .Values.global.rke2DataDir -}}
{{- else -}}
{{- "/var/lib/rancher/rke2" -}}
{{- end -}}
{{- end -}}
{{- define "kubeproxy_kubeconfig" -}}
{{- if .Values.global.rke2DataDir -}}
{{- printf "%s/agent/kubeproxy.kubeconfig" .Values.global.rke2DataDir -}}
{{- else -}}
{{- printf "%s" .Values.clientConnection.kubeconfig -}}
{{- end -}}
{{- end -}}