From 4a5a48d648c1789d7bfeaf32db001fb943d49703 Mon Sep 17 00:00:00 2001 From: yahel2410 Date: Tue, 26 Mar 2024 14:24:23 +0200 Subject: [PATCH] Add support for custom priorityClassName (#117) --- 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: ""