Add templates/helm.yaml

This commit is contained in:
ties 2024-08-29 09:06:20 +00:00
parent 4004de0e46
commit 684d15994d

16
templates/helm.yaml Normal file
View File

@ -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 }}