Skip to content

Commit 7dbe2c5

Browse files
Merge pull request #1211 from Miciah/desiredIstio-specify-priorityClassName
OCPBUGS-54568: desiredIstio: Specify priorityClassName
2 parents b3bff60 + d7e22a3 commit 7dbe2c5

File tree

1 file changed

+6
-1
lines changed
  • pkg/operator/controller/gatewayclass

1 file changed

+6
-1
lines changed

pkg/operator/controller/gatewayclass/istio.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ import (
1818
"k8s.io/utils/ptr"
1919
)
2020

21+
// systemClusterCriticalPriorityClassName is the keyword to specify
22+
// cluster-critical priority class in a pod's spec.priorityClassName.
23+
const systemClusterCriticalPriorityClassName = "system-cluster-critical"
24+
2125
// ensureIstio attempts to ensure that an Istio CR is present and returns a
2226
// Boolean indicating whether it exists, the CR if it exists, and an error
2327
// value.
@@ -105,7 +109,8 @@ func desiredIstio(name types.NamespacedName, ownerRef metav1.OwnerReference) *sa
105109
},
106110
Values: &sailv1.Values{
107111
Global: &sailv1.GlobalConfig{
108-
IstioNamespace: ptr.To(controller.DefaultOperandNamespace),
112+
IstioNamespace: ptr.To(controller.DefaultOperandNamespace),
113+
PriorityClassName: ptr.To(systemClusterCriticalPriorityClassName),
109114
},
110115
Pilot: &sailv1.PilotConfig{
111116
Cni: &sailv1.CNIUsageConfig{

0 commit comments

Comments
 (0)