Merge pull request 'helm-implementation' (#3) from helm-implementation into main

Reviewed-on: #3
This commit is contained in:
ties 2024-08-29 13:24:02 +00:00
commit 4483d631b9
3 changed files with 15 additions and 13 deletions

View File

@ -1,16 +1,16 @@
{{ $repository := .Values.subchartData.repository }} {{ $repository := .Values.subchartData.repository }}
{{- if hasPrefix "oci://" .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 }} {{- end }}
apiVersion: helm.cattle.io/v1 apiVersion: helm.cattle.io/v1
kind: HelmChart kind: HelmChart
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Values.name }}
namespace: {{ .Values.namespace }} namespace: {{ .Values.namespace }}
spec: spec:
chart: {{ .Chart.Name }} chart: {{ .Values.name }}
repo: {{ $repository }} repo: {{ $repository }}
targetNamespace: {{ .namespace }} targetNamespace: {{ .Values.namespace }}
version: {{ .Values.subchartData.version }} version: {{ .Values.subchartData.version }}
valuesContent: |- valuesContent: |-
{{ toYaml .Values.global | indent 4 }} {{ toYaml .Values.global | indent 4 }}

View File

@ -2,7 +2,7 @@
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: {{ .Chart.Name }} name: {{ .Values.name }}
namespace: {{ .Values.namespace }} namespace: {{ .Values.namespace }}
spec: spec:
routes: routes:

View File

@ -1,5 +1,7 @@
subchart: false subchart: false
chart_template:
name: chart_template
namespace: default namespace: default
# expose: # expose: