Merge pull request 'fix-namespace-issue-oci' (#4) from fix-namespace-issue-oci into main
All checks were successful
Deploy / push (push) Successful in 3s
All checks were successful
Deploy / push (push) Successful in 3s
Reviewed-on: #4
This commit is contained in:
commit
1fbc49bd60
@ -1,4 +1,4 @@
|
||||
apiVersion: v2
|
||||
name: chart_template
|
||||
description: chart_description
|
||||
version: 0.0.4
|
||||
version: 0.0.5
|
||||
@ -1,6 +1,8 @@
|
||||
{{ $name := .Values.name }}
|
||||
{{ $repository := .Values.subchartData.repository }}
|
||||
{{- if hasPrefix "oci://" .Values.subchartData.repository }}
|
||||
{{- $repository = printf "%s/%s" .Values.subchartData.repository .Values.name }}
|
||||
{{- $name = printf "%s/%s" .Values.subchartData.repository .Values.name }}
|
||||
{{- $repository = "" }}
|
||||
{{- end }}
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
@ -8,8 +10,10 @@ metadata:
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
chart: {{ .Values.name }}
|
||||
chart: {{ $name }}
|
||||
{{- if $repository }}
|
||||
repo: {{ $repository }}
|
||||
{{- end }}
|
||||
targetNamespace: {{ .Values.namespace }}
|
||||
version: {{ .Values.subchartData.version }}
|
||||
valuesContent: |-
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user