blob: 9a80b3a9f8b509961360504cca15edaeaf013c68 [file] [log] [blame]
From 1df9feeb330507bc2f988951e2b4813408621cb3 Mon Sep 17 00:00:00 2001
From: Dong Ma <dong.ma@vexxhost.com>
Date: Thu, 13 Feb 2025 16:15:52 +0000
Subject: [PATCH] Fix the missing {priority,runtime}ClassName
diff --git a/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl b/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl
index 6b77004f..da3c4819 100644
--- a/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl
+++ b/magnum/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl
@@ -70,6 +70,12 @@ spec:
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
spec:
+{{- if and $envAll.Values.pod.priorityClassName $envAll.Values.pod.priorityClassName.bootstrap }}
+ priorityClassName: {{ $envAll.Values.pod.priorityClassName.bootstrap }}
+{{- end }}
+{{- if and $envAll.Values.pod.runtimeClassName $envAll.Values.pod.runtimeClassName.bootstrap }}
+ runtimeClassName: {{ $envAll.Values.pod.runtimeClassName.bootstrap }}
+{{- end }}
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure
{{ tuple $envAll "bootstrap" | include "helm-toolkit.snippets.kubernetes_image_pull_secrets" | indent 6 }}
diff --git a/magnum/values.yaml b/magnum/values.yaml
index 341f1ecd..29b8198b 100644
--- a/magnum/values.yaml
+++ b/magnum/values.yaml
@@ -485,10 +485,12 @@ pod:
priorityClassName:
magnum_api: null
magnum_conductor: null
+ bootstrap: null
db_sync: null
runtimeClassName:
magnum_api: null
magnum_conductor: null
+ bootstrap: null
db_sync: null
user:
magnum: