Skip to content

Commit

Permalink
Add watch for secrets and configmaps in `openshift-cloud-controller-m…
Browse files Browse the repository at this point in the history
…anager` namespace
  • Loading branch information
lobziik committed Feb 17, 2023
1 parent 8ec1840 commit 5b275f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controllers/clusteroperator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ func (r *CloudOperatorReconciler) SetupWithManager(mgr ctrl.Manager) error {
Watches(&source.Kind{Type: &operatorv1.KubeControllerManager{}},
handler.EnqueueRequestsFromMapFunc(toClusterOperator),
builder.WithPredicates(kcmPredicates())).
Watches(&source.Channel{Source: watcher.EventStream()}, handler.EnqueueRequestsFromMapFunc(toClusterOperator))
Watches(&source.Channel{Source: watcher.EventStream()}, handler.EnqueueRequestsFromMapFunc(toClusterOperator)).
Watches(&source.Kind{Type: &corev1.ConfigMap{}}, handler.EnqueueRequestsFromMapFunc(toClusterOperator)).
Watches(&source.Kind{Type: &corev1.Secret{}}, handler.EnqueueRequestsFromMapFunc(toClusterOperator))

return build.Complete(r)
}
Expand Down

0 comments on commit 5b275f1

Please sign in to comment.