diff --git a/neutron/templates/cron-job-ovn-db-sync.yaml b/neutron/templates/cron-job-ovn-db-sync.yaml index 636aa8bf6d..e593414fcb 100644 --- a/neutron/templates/cron-job-ovn-db-sync.yaml +++ b/neutron/templates/cron-job-ovn-db-sync.yaml @@ -50,12 +50,8 @@ spec: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 12 }} {{ dict "envAll" $envAll "podName" "neutron-ovn-db-sync" "containerNames" (list "init" "neutron-ovn-db-sync" ) | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: -{{ with .Values.pod.priorityClassName.neutron_ovn_db_sync }} - priorityClassName: {{ . }} -{{ end }} -{{ with .Values.pod.runtimeClassName.neutron_ovn_db_sync }} - runtimeClassName: {{ . }} -{{ end }} +{{ tuple "neutron_ovn_db_sync" . | include "helm-toolkit.snippets.kubernetes_pod_priority_class" | indent 6 }} +{{ tuple "neutron_ovn_db_sync" . | include "helm-toolkit.snippets.kubernetes_pod_runtime_class" | indent 6 }} serviceAccountName: {{ $serviceAccountName }} restartPolicy: OnFailure {{ if $envAll.Values.pod.tolerations.neutron.enabled }} diff --git a/releasenotes/notes/neutron-9dbb4250fd893743.yaml b/releasenotes/notes/neutron-9dbb4250fd893743.yaml new file mode 100644 index 0000000000..3ff3733211 --- /dev/null +++ b/releasenotes/notes/neutron-9dbb4250fd893743.yaml @@ -0,0 +1,6 @@ +--- +neutron: + - | + Fix ovn sync db cron job to use helm-toolkit snippets when + specifying runtime and priority classes. +...