From 35abefedd64588ee947d50cb2ae28df2aa7d2e5d Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 7 Nov 2023 09:42:57 +0100 Subject: [PATCH] Provide global context --- helm/cluster_setup/Chart.yaml | 4 ++-- helm/cluster_setup/templates/_helpers.tpl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helm/cluster_setup/Chart.yaml b/helm/cluster_setup/Chart.yaml index d19693f..ab4975b 100644 --- a/helm/cluster_setup/Chart.yaml +++ b/helm/cluster_setup/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: cluster_setup -version: 0.3.3 +version: 0.3.4 type: application description: "Initial cluster setup" maintainers: @@ -9,7 +9,7 @@ maintainers: annotations: artifacthub.io/changes: | - kind: fixed - description: Added missing labels and annotations + description: Provided global context artifacthub.io/signKey: | fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc diff --git a/helm/cluster_setup/templates/_helpers.tpl b/helm/cluster_setup/templates/_helpers.tpl index 8b8462b..c87e7a0 100644 --- a/helm/cluster_setup/templates/_helpers.tpl +++ b/helm/cluster_setup/templates/_helpers.tpl @@ -34,8 +34,8 @@ Create chart name and version as used by the chart label. Common labels */}} {{- define "template.labels" -}} -helm.sh/chart: {{ include "template.chart" . }} -{{ include "template.selectorLabels" . }} +helm.sh/chart: {{ include "template.chart" $ }} +{{ include "template.selectorLabels" $ }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} {{- define "template.annotations" -}} @@ -47,7 +47,7 @@ meta.helm.sh/release-namespace: {{ .Release.Namespace }} Selector labels */}} {{- define "template.selectorLabels" -}} -app.kubernetes.io/name: {{ include "template.name" . }} +app.kubernetes.io/name: {{ include "template.name" $ }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }}