diff --git a/templates/helm.yaml b/templates/helm.yaml new file mode 100644 index 0000000..0ab4706 --- /dev/null +++ b/templates/helm.yaml @@ -0,0 +1,16 @@ +{{ $repository := .Values.subchartData.repository }} +{{- if hasPrefix "oci://" .Values.subchartData.repository }} +{{- $repository = printf "%s/%s" .Values.subchartData.repository .Chart.Name }} +{{- end }} +apiVersion: helm.cattle.io/v1 +kind: HelmChart +metadata: + name: {{ .Chart.Name }} + namespace: {{ .Values.namespace }} +spec: + chart: {{ .Chart.Name }} + repo: {{ $repository }} + targetNamespace: {{ .namespace }} + version: {{ .Values.subchartData.version }} + valuesContent: |- +{{ toYaml .Values.global | indent 4 }} \ No newline at end of file