| From ab35df279310c02396f3ef66e58949f3d6556105 Mon Sep 17 00:00:00 2001 |
| From: Mohammed Naser <mnaser@vexxhost.com> |
| Date: Thu, 6 Feb 2025 09:18:59 -0500 |
| Subject: [PATCH] Add {priority,runtime}ClassName for db_sync |
| |
| --- |
| helm-toolkit/templates/manifests/_job-db-sync.tpl | 6 ++++++ |
| 1 file changed, 6 insertions(+) |
| |
| diff --git a/helm-toolkit/templates/manifests/_job-db-sync.tpl b/helm-toolkit/templates/manifests/_job-db-sync.tpl |
| index 4696c88f..67fac86b 100644 |
| --- a/helm-toolkit/templates/manifests/_job-db-sync.tpl |
| +++ b/helm-toolkit/templates/manifests/_job-db-sync.tpl |
| @@ -68,6 +68,12 @@ spec: |
| annotations: |
| {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} |
| spec: |
| +{{- if and $envAll.Values.pod.priorityClassName $envAll.Values.pod.priorityClassName.db_sync }} |
| + priorityClassName: {{ $envAll.Values.pod.priorityClassName.db_sync }} |
| +{{- end }} |
| +{{- if and $envAll.Values.pod.runtimeClassName $envAll.Values.pod.runtimeClassName.db_sync }} |
| + runtimeClassName: {{ $envAll.Values.pod.runtimeClassName.db_sync }} |
| +{{- end }} |
| serviceAccountName: {{ $serviceAccountName }} |
| restartPolicy: OnFailure |
| {{ tuple $envAll "db_sync" | include "helm-toolkit.snippets.kubernetes_image_pull_secrets" | indent 6 }} |
| -- |
| 2.43.0 |