blob: 1d32782b069aed775ee721b8bd4c86c267e3cfd0 [file] [log] [blame]
Mohammed Naser46251aa2025-02-06 09:24:32 -05001From ab35df279310c02396f3ef66e58949f3d6556105 Mon Sep 17 00:00:00 2001
2From: Mohammed Naser <mnaser@vexxhost.com>
3Date: Thu, 6 Feb 2025 09:18:59 -0500
4Subject: [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
10diff --git a/helm-toolkit/templates/manifests/_job-db-sync.tpl b/helm-toolkit/templates/manifests/_job-db-sync.tpl
11index 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--
282.43.0