{{- define "tool.helm-chart-config.tpl" -}} {{- $name := .Release.Name -}} {{ with ( .Values.values ) }} apiVersion: helm.cattle.io/v1 kind: HelmChartConfig metadata: name: {{ $name }} namespace: tools spec: valuesContent: |- {{- toYaml . | nindent 4 }} {{- end -}} {{- end -}}