Mohammed Naser | 46251aa | 2025-02-06 09:24:32 -0500 | [diff] [blame^] | 1 | From ab35df279310c02396f3ef66e58949f3d6556105 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mohammed Naser <mnaser@vexxhost.com> |
| 3 | Date: Thu, 6 Feb 2025 09:18:59 -0500 |
| 4 | Subject: [PATCH] Add {priority,runtime}ClassName for db_sync |
| 5 | |
| 6 | --- |
| 7 | helm-toolkit/templates/manifests/_job-db-sync.tpl | 6 ++++++ |
| 8 | 1 file changed, 6 insertions(+) |
| 9 | |
| 10 | diff --git a/helm-toolkit/templates/manifests/_job-db-sync.tpl b/helm-toolkit/templates/manifests/_job-db-sync.tpl |
| 11 | index 4696c88f..67fac86b 100644 |
| 12 | --- a/helm-toolkit/templates/manifests/_job-db-sync.tpl |
| 13 | +++ b/helm-toolkit/templates/manifests/_job-db-sync.tpl |
| 14 | @@ -68,6 +68,12 @@ spec: |
| 15 | annotations: |
| 16 | {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} |
| 17 | spec: |
| 18 | +{{- if and $envAll.Values.pod.priorityClassName $envAll.Values.pod.priorityClassName.db_sync }} |
| 19 | + priorityClassName: {{ $envAll.Values.pod.priorityClassName.db_sync }} |
| 20 | +{{- end }} |
| 21 | +{{- if and $envAll.Values.pod.runtimeClassName $envAll.Values.pod.runtimeClassName.db_sync }} |
| 22 | + runtimeClassName: {{ $envAll.Values.pod.runtimeClassName.db_sync }} |
| 23 | +{{- end }} |
| 24 | serviceAccountName: {{ $serviceAccountName }} |
| 25 | restartPolicy: OnFailure |
| 26 | {{ tuple $envAll "db_sync" | include "helm-toolkit.snippets.kubernetes_image_pull_secrets" | indent 6 }} |
| 27 | -- |
| 28 | 2.43.0 |