mirror of https://git.rancher.io/rke2-charts
22 lines
623 B
Smarty
22 lines
623 B
Smarty
{{- 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 -}}
|