blob: 9a80b3a9f8b509961360504cca15edaeaf013c68 [file] [log] [blame]
Dong Ma36b89222025-02-13 16:15:52 +00001From 1df9feeb330507bc2f988951e2b4813408621cb3 Mon Sep 17 00:00:00 2001
2From: Dong Ma <dong.ma@vexxhost.com>
3Date: Thu, 13 Feb 2025 16:15:52 +0000
4Subject: [PATCH] Fix the missing {priority,runtime}ClassName
5
6diff --git a/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl b/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl
7index 6b77004f..da3c4819 100644
8--- a/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl
9+++ b/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl
10@@ -70,6 +70,12 @@ spec:
11 annotations:
12 {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
13 spec:
14+{{- if and $envAll.Values.pod.priorityClassName $envAll.Values.pod.priorityClassName.bootstrap }}
15+ priorityClassName: {{ $envAll.Values.pod.priorityClassName.bootstrap }}
16+{{- end }}
17+{{- if and $envAll.Values.pod.runtimeClassName $envAll.Values.pod.runtimeClassName.bootstrap }}
18+ runtimeClassName: {{ $envAll.Values.pod.runtimeClassName.bootstrap }}
19+{{- end }}
20 serviceAccountName: {{ $serviceAccountName }}
21 restartPolicy: OnFailure
22 {{ tuple $envAll "bootstrap" | include "helm-toolkit.snippets.kubernetes_image_pull_secrets" | indent 6 }}
23diff --git a/magnum/values.yaml b/magnum/values.yaml
24index 341f1ecd..29b8198b 100644
25--- a/magnum/values.yaml
26+++ b/magnum/values.yaml
27@@ -485,10 +485,12 @@ pod:
28 priorityClassName:
29 magnum_api: null
30 magnum_conductor: null
31+ bootstrap: null
32 db_sync: null
33 runtimeClassName:
34 magnum_api: null
35 magnum_conductor: null
36+ bootstrap: null
37 db_sync: null
38 user:
39 magnum: