{{ $repository := .Values.subchartData.repository }} {{- if hasPrefix "oci://" .Values.subchartData.repository }} {{- $repository = printf "%s/%s" .Values.subchartData.repository .Values.name }} {{- end }} apiVersion: helm.cattle.io/v1 kind: HelmChart metadata: name: {{ .Values.name }} namespace: {{ .Values.namespace }} spec: chart: {{ .Values.name }} repo: {{ $repository }} targetNamespace: {{ .Values.namespace }} version: {{ .Values.subchartData.version }} valuesContent: |- {{ toYaml .Values.global | indent 4 }}