| From e7640e5fc0179fabfa063e89f7e7a7612e1c807e Mon Sep 17 00:00:00 2001 |
| From: Dong Ma <dong.ma@vexxhost.com> |
| Date: Mon, 10 Feb 2025 06:32:12 +0000 |
| Subject: [PATCH] Enable {priority,runtime}ClassName for Barbican |
| |
| --- |
| barbican/templates/deployment-api.yaml | 6 +++ |
| barbican/templates/pod-test.yaml | 6 +++ |
| barbican/values.yaml | 8 ++++ |
| |
| diff --git a/barbican/templates/deployment-api.yaml b/barbican/templates/deployment-api.yaml |
| index 8ae9ea42..1e5cbbac 100644 |
| --- a/barbican/templates/deployment-api.yaml |
| +++ b/barbican/templates/deployment-api.yaml |
| @@ -47,6 +47,12 @@ spec: |
| {{ dict "envAll" $envAll "podName" "barbican-api" "containerNames" (list "init" "barbican-api") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} |
| spec: |
| {{ dict "envAll" $envAll "application" "barbican" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} |
| +{{ with .Values.pod.priorityClassName.barbican_api }} |
| + priorityClassName: {{ . }} |
| +{{ end }} |
| +{{ with .Values.pod.runtimeClassName.barbican_api }} |
| + runtimeClassName: {{ . }} |
| +{{ end }} |
| serviceAccountName: {{ $serviceAccountName }} |
| affinity: |
| {{ tuple $envAll "barbican" "api" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} |
| diff --git a/barbican/templates/pod-test.yaml b/barbican/templates/pod-test.yaml |
| index f4143564..783d328b 100644 |
| --- a/barbican/templates/pod-test.yaml |
| +++ b/barbican/templates/pod-test.yaml |
| @@ -33,6 +33,12 @@ metadata: |
| {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} |
| {{ dict "envAll" $envAll "podName" "barbican-test" "containerNames" (list "init" "barbican-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }} |
| spec: |
| +{{ with .Values.pod.priorityClassName.barbican_tests }} |
| + priorityClassName: {{ . }} |
| +{{ end }} |
| +{{ with .Values.pod.runtimeClassName.barbican_tests }} |
| + runtimeClassName: {{ . }} |
| +{{ end }} |
| serviceAccountName: {{ $serviceAccountName }} |
| {{ dict "envAll" $envAll "application" "test" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 2 }} |
| nodeSelector: |
| diff --git a/barbican/values.yaml b/barbican/values.yaml |
| index e2e87bf7..17aee723 100644 |
| --- a/barbican/values.yaml |
| +++ b/barbican/values.yaml |
| @@ -55,6 +55,14 @@ images: |
| - image_repo_sync |
| |
| pod: |
| + priorityClassName: |
| + barbican_api: null |
| + barbican_tests: null |
| + db_sync: null |
| + runtimeClassName: |
| + barbican_api: null |
| + barbican_tests: null |
| + db_sync: null |
| security_context: |
| barbican: |
| pod: |