| From 20be35a44b530e59c93fd6cee36b6518308932bb Mon Sep 17 00:00:00 2001 |
| From: Dong Ma <dong.ma@vexxhost.com> |
| Date: Mon, 10 Feb 2025 09:56:42 +0000 |
| Subject: [PATCH] Enable {priority,runtime}ClassName for Glance |
| |
| --- |
| glance/templates/deployment-api.yaml | 6 ++++++ |
| glance/templates/pod-rally-test.yaml | 6 ++++++ |
| glance/values.yaml | 8 ++++++++ |
| 3 files changed, 20 insertions(+) |
| |
| diff --git a/glance/templates/deployment-api.yaml b/glance/templates/deployment-api.yaml |
| index d88856ff..9f14d1b2 100644 |
| --- a/glance/templates/deployment-api.yaml |
| +++ b/glance/templates/deployment-api.yaml |
| @@ -75,6 +75,12 @@ spec: |
| configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} |
| {{ dict "envAll" $envAll "podName" "glance-api" "containerNames" ( list "glance-perms" "glance-api" "init" "nginx" ) | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} |
| spec: |
| +{{ with .Values.pod.priorityClassName.glance_api }} |
| + priorityClassName: {{ . }} |
| +{{ end }} |
| +{{ with .Values.pod.runtimeClassName.glance_api }} |
| + runtimeClassName: {{ . }} |
| +{{ end }} |
| serviceAccountName: {{ $serviceAccountName }} |
| {{ dict "envAll" $envAll "application" "glance" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} |
| affinity: |
| diff --git a/glance/templates/pod-rally-test.yaml b/glance/templates/pod-rally-test.yaml |
| index 0ca17eb2..1148e8a9 100644 |
| --- a/glance/templates/pod-rally-test.yaml |
| +++ b/glance/templates/pod-rally-test.yaml |
| @@ -44,6 +44,12 @@ spec: |
| {{ .Values.labels.test.node_selector_key }}: {{ .Values.labels.test.node_selector_value }} |
| {{ dict "envAll" $envAll "application" "test" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 2 }} |
| restartPolicy: Never |
| +{{ with .Values.pod.priorityClassName.glance_tests }} |
| + priorityClassName: {{ . }} |
| +{{ end }} |
| +{{ with .Values.pod.runtimeClassName.glance_tests }} |
| + runtimeClassName: {{ . }} |
| +{{ end }} |
| serviceAccountName: {{ $serviceAccountName }} |
| initContainers: |
| {{ tuple $envAll "tests" $mounts_tests_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 4 }} |
| diff --git a/glance/values.yaml b/glance/values.yaml |
| index 85ddf18b..6eae655a 100644 |
| --- a/glance/values.yaml |
| +++ b/glance/values.yaml |
| @@ -795,6 +795,14 @@ endpoints: |
| default: 80 |
| |
| pod: |
| + priorityClassName: |
| + glance_api: null |
| + glance_tests: null |
| + db_sync: null |
| + runtimeClassName: |
| + glance_api: null |
| + glance_tests: null |
| + db_sync: null |
| security_context: |
| glance: |
| pod: |
| -- |
| 2.34.1 |
| |