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 }}
|
||||
{{- 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 = "" }}
|
||||
{{- end }}
|
||||
apiVersion: helm.cattle.io/v1
|
||||
@ -10,7 +10,7 @@ metadata:
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
chart: {{ .Values.name }}
|
||||
chart: {{ $name }}
|
||||
{{- if $repository }}
|
||||
repo: {{ $repository }}
|
||||
{{- end }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user