Add templates/helm.yaml
This commit is contained in:
parent
4004de0e46
commit
684d15994d
16
templates/helm.yaml
Normal file
16
templates/helm.yaml
Normal 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 }}
|
||||
Loading…
x
Reference in New Issue
Block a user