From 5e7206c9a626df68f99653486eff3d0ba54859b9 Mon Sep 17 00:00:00 2001 From: yahel Date: Mon, 25 Mar 2024 13:31:15 +0200 Subject: [PATCH] Add support for custom priorityClassName --- charts/localstack/templates/deployment.yaml | 3 +++ charts/localstack/test-values.yaml | 1 + charts/localstack/values.yaml | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/charts/localstack/templates/deployment.yaml b/charts/localstack/templates/deployment.yaml index f6d1860..f7ace62 100644 --- a/charts/localstack/templates/deployment.yaml +++ b/charts/localstack/templates/deployment.yaml @@ -33,6 +33,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName | quote }} + {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/charts/localstack/test-values.yaml b/charts/localstack/test-values.yaml index 9b76c8b..519b54f 100644 --- a/charts/localstack/test-values.yaml +++ b/charts/localstack/test-values.yaml @@ -14,6 +14,7 @@ command: ## cause the LocalStack instance to crash. ## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy dnsPolicy: "Default" +priorityClassName: "system-cluster-critical" # built-in priority class in most k8s distributions # enable startup scripts, create a startup script which creates an SQS queue enableStartupScripts: true diff --git a/charts/localstack/values.yaml b/charts/localstack/values.yaml index d4f4f8c..cd32e99 100644 --- a/charts/localstack/values.yaml +++ b/charts/localstack/values.yaml @@ -247,3 +247,7 @@ volumeMounts: [] # - name: # mountPath: # readOnly: true + +## @param priorityClassName Allows you to set the priorityClassName for the pod +## The default is not to set any priorityClassName +# priorityClassName: ""