From c918aa982b3f472a297fb1719afd7bb0cbd66279 Mon Sep 17 00:00:00 2001 From: Rob Gerritsen Date: Wed, 19 Oct 2022 16:48:44 +0200 Subject: [PATCH] Support custom labels on operator pod Support priorityClassName --- helm/trident-operator/templates/deployment.yaml | 6 ++++++ helm/trident-operator/values.yaml | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/helm/trident-operator/templates/deployment.yaml b/helm/trident-operator/templates/deployment.yaml index b4a2c6b08..acc05d024 100644 --- a/helm/trident-operator/templates/deployment.yaml +++ b/helm/trident-operator/templates/deployment.yaml @@ -26,6 +26,9 @@ spec: labels: app: operator.trident.netapp.io name: trident-operator + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} spec: nodeSelector: kubernetes.io/arch: amd64 @@ -42,6 +45,9 @@ spec: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} serviceAccountName: trident-operator + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} containers: - command: - /trident-operator diff --git a/helm/trident-operator/values.yaml b/helm/trident-operator/values.yaml index f9f91ebee..8768147c6 100644 --- a/helm/trident-operator/values.yaml +++ b/helm/trident-operator/values.yaml @@ -11,10 +11,14 @@ podAnnotations: {} ## Deployment Annotations deploymentAnnotations: {} +podLabels: {} + ## Tolerations for pod assignment ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ tolerations: [] +priorityClassName: "" + ## Affinity for pod assignment ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity affinity: {} @@ -31,8 +35,6 @@ affinity: {} # tridentNodePluginTolerations overrides tolerations for Pods running the Trident Node CSI Plugin # tridentNodePluginTolerations: [] - - # imageRegistry identifies the registry for the trident-operator, trident, and other images. Leave empty to accept the default. imageRegistry: ""