Update templates/helm.yaml
This commit is contained in:
parent
d5eefece63
commit
06b5940cff
@ -1,7 +1,7 @@
|
|||||||
{{ $name := .Values.subchartData.name }}
|
{{ $name := .Values.name }}
|
||||||
{{ $repository := .Values.subchartData.repository }}
|
{{ $repository := .Values.subchartData.repository }}
|
||||||
{{- if hasPrefix "oci://" .Values.subchartData.repository }}
|
{{- if hasPrefix "oci://" .Values.subchartData.repository }}
|
||||||
{{- $name = printf "%s/%s" .Values.subchartData.repository .Values.subchartData.name }}
|
{{- $name = printf "%s/%s" .Values.subchartData.repository .Values.name }}
|
||||||
{{- $repository = "" }}
|
{{- $repository = "" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
apiVersion: helm.cattle.io/v1
|
apiVersion: helm.cattle.io/v1
|
||||||
@ -10,7 +10,7 @@ metadata:
|
|||||||
name: {{ .Values.name }}
|
name: {{ .Values.name }}
|
||||||
namespace: {{ .Values.namespace }}
|
namespace: {{ .Values.namespace }}
|
||||||
spec:
|
spec:
|
||||||
chart: {{ .Values.name }}
|
chart: {{ $name }}
|
||||||
{{- if $repository }}
|
{{- if $repository }}
|
||||||
repo: {{ $repository }}
|
repo: {{ $repository }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user