| From 0b672d9b62ce39a07969bb1910aba9c4c4cdadc1 Mon Sep 17 00:00:00 2001 |
| From: Dong Ma <dong.ma@vexxhost.com> |
| Date: Mon, 10 Feb 2025 13:28:41 +0000 |
| Subject: [PATCH] Enable {priority,runtime}ClassName for Ironic |
| |
| --- |
| ironic/templates/deployment-api.yaml | 6 ++++++ |
| ironic/values.yaml | 6 ++++++ |
| 2 files changed, 12 insertions(+) |
| |
| diff --git a/ironic/templates/deployment-api.yaml b/ironic/templates/deployment-api.yaml |
| index 7d4b8387..99e25b65 100644 |
| --- a/ironic/templates/deployment-api.yaml |
| +++ b/ironic/templates/deployment-api.yaml |
| @@ -45,6 +45,12 @@ spec: |
| configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} |
| {{ tuple "ironic_api" . | include "helm-toolkit.snippets.custom_pod_annotations" | indent 8 }} |
| spec: |
| +{{ with .Values.pod.priorityClassName.ironic_api }} |
| + priorityClassName: {{ . }} |
| +{{ end }} |
| +{{ with .Values.pod.runtimeClassName.ironic_api }} |
| + runtimeClassName: {{ . }} |
| +{{ end }} |
| serviceAccountName: {{ $serviceAccountName }} |
| affinity: |
| {{ tuple $envAll "ironic" "api" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} |
| diff --git a/ironic/values.yaml b/ironic/values.yaml |
| index a94bc3f2..d28463aa 100644 |
| --- a/ironic/values.yaml |
| +++ b/ironic/values.yaml |
| @@ -639,6 +639,12 @@ endpoints: |
| default: 24220 |
| |
| pod: |
| + priorityClassName: |
| + ironic_api: null |
| + db_sync: null |
| + runtimeClassName: |
| + ironic_api: null |
| + db_sync: null |
| affinity: |
| anti: |
| type: |
| -- |
| 2.34.1 |
| |