| 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/manila/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl b/manila/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl |
| index 6b77004f..da3c4819 100644 |
| --- a/manila/charts/helm-toolkit/templates/manifests/_job-bootstrap.tpl |
| +++ b/manila/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/manila/values.yaml b/manila/values.yaml |
| index 400d52da..42198625 100644 |
| --- a/manila/values.yaml |
| +++ b/manila/values.yaml |
| @@ -72,6 +72,7 @@ pod: |
| manila_scheduler: null |
| manila_tests: null |
| manila_share: null |
| + bootstrap: null |
| db_sync: null |
| runtimeClassName: |
| manila_api: null |
| @@ -79,6 +80,7 @@ pod: |
| manila_scheduler: null |
| manila_tests: null |
| manila_share: null |
| + bootstrap: null |
| db_sync: null |
| security_context: |
| manila: |