Skip to content

Commit

Permalink
bundle: add default toleration to operators and cronjob
Browse files Browse the repository at this point in the history
all operators deployed as part of odf should tolerate this taint by
default "node.ocs.openshift.io/storage=true:NoSchedule"

Signed-off-by: Leela Venkaiah G <[email protected]>
  • Loading branch information
leelavg committed Sep 13, 2024
1 parent c0a9a22 commit 9fd572d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/console/console_init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ spec:
securityContext:
runAsNonRoot: true
serviceAccountName: ocs-client-operator-controller-manager
tolerations:
- effect: NoSchedule
key: node.ocs.openshift.io/storage
operator: Equal
value: "true"
5 changes: 5 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,8 @@ spec:
secretName: webhook-cert-secret
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
tolerations:
- effect: NoSchedule
key: node.ocs.openshift.io/storage
operator: Equal
value: "true"
8 changes: 8 additions & 0 deletions internal/controller/storageclient_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,14 @@ func (r *StorageClientReconciler) reconcileClientStatusReporterJob() (reconcile.
},
RestartPolicy: corev1.RestartPolicyOnFailure,
ServiceAccountName: "ocs-client-operator-status-reporter",
Tolerations: []corev1.Toleration{
{
Effect: corev1.TaintEffectNoSchedule,
Key: "node.ocs.openshift.io/storage",
Operator: corev1.TolerationOpEqual,
Value: "true",
},
},
},
},
},
Expand Down

0 comments on commit 9fd572d

Please sign in to comment.