From 68e9f6de407592ac371df744b0dc631b707751ec Mon Sep 17 00:00:00 2001 From: Tom Keyte Date: Tue, 30 Sep 2025 12:19:24 +0100 Subject: [PATCH] Add support for operator priorityClassName Signed-off-by: Tom Keyte --- cmd/k8s-operator/deploy/chart/templates/deployment.yaml | 3 +++ cmd/k8s-operator/deploy/chart/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml index 51d0a88c3..33a6bb58b 100644 --- a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml +++ b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml @@ -29,6 +29,9 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.operatorConfig.priorityClassName }} + priorityClassName: {{ .Values.operatorConfig.priorityClassName }} + {{- end }} serviceAccountName: operator {{- with .Values.operatorConfig.podSecurityContext }} securityContext: diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index cdedb92e8..e38567fc0 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -57,6 +57,8 @@ operatorConfig: podAnnotations: {} podLabels: {} + + priorityClassName: "" serviceAccountAnnotations: {} # eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/tailscale-operator-role