diff --git a/templates/helm.yaml b/templates/helm.yaml index 0ab4706..cec5d09 100644 --- a/templates/helm.yaml +++ b/templates/helm.yaml @@ -1,16 +1,16 @@ {{ $repository := .Values.subchartData.repository }} {{- if hasPrefix "oci://" .Values.subchartData.repository }} -{{- $repository = printf "%s/%s" .Values.subchartData.repository .Chart.Name }} +{{- $repository = printf "%s/%s" .Values.subchartData.repository .Values.name }} {{- end }} apiVersion: helm.cattle.io/v1 kind: HelmChart metadata: - name: {{ .Chart.Name }} + name: {{ .Values.name }} namespace: {{ .Values.namespace }} spec: - chart: {{ .Chart.Name }} + chart: {{ .Values.name }} repo: {{ $repository }} - targetNamespace: {{ .namespace }} + targetNamespace: {{ .Values.namespace }} version: {{ .Values.subchartData.version }} valuesContent: |- {{ toYaml .Values.global | indent 4 }} \ No newline at end of file diff --git a/templates/traefik.yaml b/templates/traefik.yaml index 7c76c30..88a8c60 100644 --- a/templates/traefik.yaml +++ b/templates/traefik.yaml @@ -2,7 +2,7 @@ apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: - name: {{ .Chart.Name }} + name: {{ .Values.name }} namespace: {{ .Values.namespace }} spec: routes: diff --git a/values.yaml b/values.yaml index 58830bd..d35ae82 100644 --- a/values.yaml +++ b/values.yaml @@ -1,14 +1,16 @@ subchart: false -namespace: default +chart_template: + name: chart_template + namespace: default -# expose: -# service: -# name: -# port: -# match: Host(`n8n.ties.one`) -# middlewares: -# - authentik +# expose: +# service: +# name: +# port: +# match: Host(`n8n.ties.one`) +# middlewares: +# - authentik global: # values.yaml contents \ No newline at end of file