From 145d475807af215564c1f2cacb14e35cd502c739 Mon Sep 17 00:00:00 2001 From: prakharmathur82 Date: Mon, 18 Sep 2023 12:08:03 +0530 Subject: [PATCH] feat: add support for additional labels in app chart --- stable/app/Chart.yaml | 2 +- stable/app/README.md | 1 + stable/app/templates/_helpers.tpl | 3 +++ stable/app/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/app/Chart.yaml b/stable/app/Chart.yaml index 425bfba3..59c833ab 100644 --- a/stable/app/Chart.yaml +++ b/stable/app/Chart.yaml @@ -15,4 +15,4 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.2 +version: 0.5.3 diff --git a/stable/app/README.md b/stable/app/README.md index 90c20dbc..aa74a443 100644 --- a/stable/app/README.md +++ b/stable/app/README.md @@ -41,6 +41,7 @@ The following table lists the configurable parameters of the Siren chart and the | Key | Type | Default | Description | | ------------------------------------- | ------ | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | +| additionalLabels | object | `{}` | Additional labels to be added in resources | | affinity | object | `{}` | | | config | object | `{}` | | | container.command | list | `[]` | | diff --git a/stable/app/templates/_helpers.tpl b/stable/app/templates/_helpers.tpl index dc0845a2..ab55acd7 100644 --- a/stable/app/templates/_helpers.tpl +++ b/stable/app/templates/_helpers.tpl @@ -55,4 +55,7 @@ Selector labels {{- define "app.selectorLabels" -}} app.kubernetes.io/name: {{ include "app.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} +{{- if .Values.additionalLabels }} +{{ toYaml .Values.additionalLabels }} +{{- end }} {{- end }} diff --git a/stable/app/values.yaml b/stable/app/values.yaml index 66dc0832..c9da4635 100644 --- a/stable/app/values.yaml +++ b/stable/app/values.yaml @@ -18,6 +18,8 @@ namespaceOverride: "" podAnnotations: {} +additionalLabels: {} + podSecurityContext: {} # -- Eg: fsGroup: 2000