From 2b6ab46866361f5e960da3655bff25c7ffe6bc97 Mon Sep 17 00:00:00 2001 From: Anton Kuraev Date: Tue, 28 May 2024 11:23:08 -0700 Subject: [PATCH] Add labels support --- charts/datahub-executor-worker/templates/deployment.yaml | 6 ++++++ charts/datahub-executor-worker/values.yaml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/charts/datahub-executor-worker/templates/deployment.yaml b/charts/datahub-executor-worker/templates/deployment.yaml index 0470883..fe04298 100644 --- a/charts/datahub-executor-worker/templates/deployment.yaml +++ b/charts/datahub-executor-worker/templates/deployment.yaml @@ -4,6 +4,9 @@ metadata: name: {{ include "datahub-executor-worker.fullname" . }} labels: {{- include "datahub-executor-worker.labels" . | nindent 4 }} + {{- range $key, $val := .Values.extraLabels }} + {{ $key }}: {{ $val | quote }} + {{- end }} spec: replicas: {{if .Values.global.readonly}} 0 {{else}} {{ .Values.replicaCount }} {{end}} selector: @@ -17,6 +20,9 @@ spec: {{- end }} labels: {{- include "datahub-executor-worker.selectorLabels" . | nindent 8 }} + {{- range $key, $value := .Values.extraPodLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- with .Values.imagePullSecrets }} diff --git a/charts/datahub-executor-worker/values.yaml b/charts/datahub-executor-worker/values.yaml index f8e18dc..926d290 100644 --- a/charts/datahub-executor-worker/values.yaml +++ b/charts/datahub-executor-worker/values.yaml @@ -63,6 +63,10 @@ extraVolumeMounts: [] extraInitContainers: [] +extraLabels: {} + +extraPodLabels: {} + resources: {} nodeSelector: {}