2024-08-29 15:36:54 +00:00

20 lines
605 B
YAML

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