You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is not a way to add custom labels to the pods. The only labels that get added to the pods are selectorLabels, which you are not able to add custom labels to. There are a couple options to allow custom pod labels.
Use the harness-delegate-ng.labels for pods as well.
Add a new variable to include additional labels to pods. See below:
Suggested changes:
diff --git a/harness-delegate-ng/templates/deployment.yaml b/harness-delegate-ng/templates/deployment.yaml
index 26e7a13..06b4e06 100644
--- a/harness-delegate-ng/templates/deployment.yaml
+++ b/harness-delegate-ng/templates/deployment.yaml
@@ -23,6 +23,7 @@ spec:
checksum/configmap: {{ include (print .Template.BasePath "/configMap.yaml") . | sha256sum | trunc 63 }}
labels:
{{- include "harness-delegate-ng.selectorLabels" . | nindent 8 }}
+ {{- toYaml .Values.additionalPodLabels | nindent 8 }}
spec:
serviceAccountName: {{ include "harness-delegate-ng.serviceAccountName" . }}
terminationGracePeriodSeconds: 600
diff --git a/harness-delegate-ng/values.yaml b/harness-delegate-ng/values.yaml
index f8a5847..df75968 100644
--- a/harness-delegate-ng/values.yaml
+++ b/harness-delegate-ng/values.yaml
@@ -232,6 +232,9 @@ ccm:
additionalLabels: {}
# nologging: "true"
+# Use this field to add additional pod labels
+additionalPodLabels: {}
+
dnsConfig: {}
# nameservers:
# - 1.2.3.4
The text was updated successfully, but these errors were encountered:
Currently, there is not a way to add custom labels to the pods. The only labels that get added to the pods are selectorLabels, which you are not able to add custom labels to. There are a couple options to allow custom pod labels.
harness-delegate-ng.labels
for pods as well.Suggested changes:
The text was updated successfully, but these errors were encountered: