diff --git a/helm-chart/templates/_helpers.tpl b/helm-chart/templates/_helpers.tpl index 42e1c48..ed00283 100644 --- a/helm-chart/templates/_helpers.tpl +++ b/helm-chart/templates/_helpers.tpl @@ -47,7 +47,7 @@ Selector labels */}} {{- define "spring-forward.selectorLabels" -}} app.kubernetes.io/name: {{ include "spring-forward.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} +app.kubernetes.io/instance: {{ .Values.instancenameOverride }} {{- end }} {{/* diff --git a/helm-chart/templates/test.yaml b/helm-chart/templates/test.yaml new file mode 100644 index 0000000..e15e973 --- /dev/null +++ b/helm-chart/templates/test.yaml @@ -0,0 +1,4 @@ +test: + {{- range $key, $secret := .Values.secret }} + {{- printf "%s: %s" $key $secret | nindent 2 }} + {{- end }} diff --git a/helm-chart/values-name-rename-Spring Forward.yaml b/helm-chart/values-name-rename-Spring Forward.yaml new file mode 100644 index 0000000..48f5a24 --- /dev/null +++ b/helm-chart/values-name-rename-Spring Forward.yaml @@ -0,0 +1,3 @@ +instancenameOverride: "release-rename" +nameOverride: "spring-forward" +fullnameOverride: "release-rename-spring-forward" diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index f70021b..b77cef7 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -2,6 +2,10 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. +secret: + test1: value + test2: value + replicaCount: 1 image: