| From 9a7ec6f874f55d5c19068c54a1a2e0dc7f5f8235 Mon Sep 17 00:00:00 2001 |
| From: Dong Ma <dong.ma@vexxhost.com> |
| Date: Wed, 12 Feb 2025 03:36:18 +0000 |
| Subject: [PATCH] Enable {priority,runtime}ClassName for Placement |
| |
| --- |
| placement/templates/deployment.yaml | 6 ++++++ |
| placement/values.yaml | 6 ++++++ |
| 2 files changed, 12 insertions(+) |
| |
| diff --git a/placement/templates/deployment.yaml b/placement/templates/deployment.yaml |
| index 3082216d..da02d33b 100644 |
| --- a/placement/templates/deployment.yaml |
| +++ b/placement/templates/deployment.yaml |
| @@ -47,6 +47,12 @@ spec: |
| configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} |
| {{ dict "envAll" $envAll "podName" "placement-api" "containerNames" (list "placement-api" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} |
| spec: |
| +{{ with .Values.pod.priorityClassName.placement }} |
| + priorityClassName: {{ . }} |
| +{{ end }} |
| +{{ with .Values.pod.runtimeClassName.placement }} |
| + runtimeClassName: {{ . }} |
| +{{ end }} |
| serviceAccountName: {{ $serviceAccountName }} |
| {{ dict "envAll" $envAll "application" "placement" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} |
| affinity: |
| diff --git a/placement/values.yaml b/placement/values.yaml |
| index 0f27a247..20e46564 100644 |
| --- a/placement/values.yaml |
| +++ b/placement/values.yaml |
| @@ -278,6 +278,12 @@ endpoints: |
| service: 8778 |
| |
| pod: |
| + priorityClassName: |
| + placement: null |
| + db_sync: null |
| + runtimeClassName: |
| + placement: null |
| + db_sync: null |
| security_context: |
| placement: |
| pod: |
| -- |
| 2.34.1 |
| |