From 92f46845193ec84da4b706241fb9f89644fe24e3 Mon Sep 17 00:00:00 2001 From: sipr-invivo <160140834+sipr-invivo@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:24:10 +0200 Subject: [PATCH] chore(k8s-metacollector): Add podLabels --- charts/k8s-metacollector/templates/deployment.yaml | 3 +++ charts/k8s-metacollector/values.yaml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/k8s-metacollector/templates/deployment.yaml b/charts/k8s-metacollector/templates/deployment.yaml index 896248ce8..7688a215a 100644 --- a/charts/k8s-metacollector/templates/deployment.yaml +++ b/charts/k8s-metacollector/templates/deployment.yaml @@ -18,6 +18,9 @@ spec: {{- end }} labels: {{- include "k8s-metacollector.selectorLabels" . | nindent 8 }} + {{- if .Values.podLabels }} + {{ toYaml .Values.podLabels | nindent 8 }} + {{- end }} spec: {{- with .Values.image.pullSecrets }} imagePullSecrets: diff --git a/charts/k8s-metacollector/values.yaml b/charts/k8s-metacollector/values.yaml index b6dcc2563..98e1fa24e 100644 --- a/charts/k8s-metacollector/values.yaml +++ b/charts/k8s-metacollector/values.yaml @@ -25,7 +25,6 @@ fullnameOverride: "" # -- namespaceOverride overrides the deployment namespace. It's useful for multi-namespace deployments in combined charts. namespaceOverride: "" - # -- serviceAccount is the configuration for the service account. serviceAccount: # -- create specifies whether a service account should be created. @@ -39,6 +38,9 @@ serviceAccount: # -- podAnnotations are custom annotations to be added to the pod. podAnnotations: {} +# -- podLabels are labels to be added to the pod. +podLabels: {} + # -- podSecurityContext holds the security settings for the pod. # -- These settings are override by the ones specified for the container when there is overlap. podSecurityContext: