From 5c7b8ae69ee42b5ff76af6604a8ff0a42354dafd Mon Sep 17 00:00:00 2001 From: ricolin Date: Wed, 9 Jul 2025 14:39:33 +0800 Subject: [PATCH] [Neutron][Ovn]Use correct way to define ClassName Correct yaml for define priorityClassName and runtimeClassName in `cron-job-ovn-db-sync.yaml` Change-Id: If0e2de976c179d07ace5111ab925fd9663ec826c Signed-off-by: ricolin --- neutron/templates/cron-job-ovn-db-sync.yaml | 8 ++------ releasenotes/notes/neutron-9dbb4250fd893743.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 releasenotes/notes/neutron-9dbb4250fd893743.yaml 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. +...