Skip to content

Commit

Permalink
Merge pull request #251 from leelavg/csi-tol
Browse files Browse the repository at this point in the history
controllers: add ocs default toleration to csi driver spec
openshift-merge-bot[bot] authored Oct 7, 2024
2 parents 38cad9a + b369994 commit 037e1ed
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions pkg/templates/csi.go
Original file line number Diff line number Diff line change
@@ -99,6 +99,14 @@ var CSIOperatorConfigSpec = csiopv1a1.OperatorConfigSpec{
PodCommonSpec: csiopv1a1.PodCommonSpec{
PrioritylClassName: ptr.To("system-cluster-critical"),
ImagePullPolicy: corev1.PullIfNotPresent,
Tolerations: []corev1.Toleration{
{
Effect: corev1.TaintEffectNoSchedule,
Key: "node.ocs.openshift.io/storage",
Operator: corev1.TolerationOpEqual,
Value: "true",
},
},
},
Replicas: ptr.To(int32(2)),
},
@@ -115,11 +123,19 @@ var CSIOperatorConfigSpec = csiopv1a1.OperatorConfigSpec{
PodCommonSpec: csiopv1a1.PodCommonSpec{
PrioritylClassName: ptr.To("system-node-critical"),
ImagePullPolicy: corev1.PullIfNotPresent,
Tolerations: []corev1.Toleration{{
Key: "node-role.kubernetes.io/master",
Operator: corev1.TolerationOpExists,
Effect: corev1.TaintEffectNoSchedule,
}},
Tolerations: []corev1.Toleration{
{
Key: "node-role.kubernetes.io/master",
Operator: corev1.TolerationOpExists,
Effect: corev1.TaintEffectNoSchedule,
},
{
Effect: corev1.TaintEffectNoSchedule,
Key: "node.ocs.openshift.io/storage",
Operator: corev1.TolerationOpEqual,
Value: "true",
},
},
},
},
},

0 comments on commit 037e1ed

Please sign in to comment.