From b9af6820e2b9f769dba49ba04122dbf7fb141eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Wed, 24 Jul 2024 17:52:16 +0200 Subject: [PATCH] add job labels and annotations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Bauer --- charts/temporal/.gitignore => .gitignore | 0 charts/temporal/Chart.yaml | 2 +- charts/temporal/templates/server-job.yaml | 10 ++++++++-- charts/temporal/values.yaml | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) rename charts/temporal/.gitignore => .gitignore (100%) diff --git a/charts/temporal/.gitignore b/.gitignore similarity index 100% rename from charts/temporal/.gitignore rename to .gitignore diff --git a/charts/temporal/Chart.yaml b/charts/temporal/Chart.yaml index 21a37b0e..1c7d99e0 100644 --- a/charts/temporal/Chart.yaml +++ b/charts/temporal/Chart.yaml @@ -39,7 +39,7 @@ dependencies: 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. -version: 0.44.0 +version: 0.45.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. appVersion: 1.24.2 diff --git a/charts/temporal/templates/server-job.yaml b/charts/temporal/templates/server-job.yaml index 1893b97e..29a73803 100644 --- a/charts/temporal/templates/server-job.yaml +++ b/charts/temporal/templates/server-job.yaml @@ -11,10 +11,16 @@ spec: metadata: name: {{ include "temporal.componentname" (list . "schema") }} labels: - # Currently there are no labels for job type {{- include "temporal.resourceLabels" (list . "database" "") | nindent 8 }} + {{- with $.Values.schema.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with $.Values.schema.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: - {{ include "temporal.serviceAccount" . }} + {{- include "temporal.serviceAccount" . }} restartPolicy: OnFailure initContainers: {{- if $.Values.cassandra.enabled }} diff --git a/charts/temporal/values.yaml b/charts/temporal/values.yaml index 39d91edb..ab8de119 100644 --- a/charts/temporal/values.yaml +++ b/charts/temporal/values.yaml @@ -367,6 +367,8 @@ schema: update: enabled: true backoffLimit: 100 + podAnnotations: {} + podLabels: {} resources: {} containerSecurityContext: {} securityContext: {}