Skip to content

Commit

Permalink
add watch for namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <[email protected]>
  • Loading branch information
coleenquadros committed Oct 12, 2023
1 parent dcff34c commit 34a020e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ func (r *MultiClusterObservabilityReconciler) SetupWithManager(mgr ctrl.Manager)
Owns(&corev1.Service{}).
// Watch for changes to secondary Observatorium CR and requeue the owner MultiClusterObservability
Owns(&observatoriumv1alpha1.Observatorium{}).
//Watch for changes to namespace and requeue the owner MultiClusterObservability
Owns(&corev1.Namespace{}).
// Watch the configmap for thanos-ruler-custom-rules update
Watches(&source.Kind{Type: &corev1.ConfigMap{}}, &handler.EnqueueRequestForObject{}, builder.WithPredicates(cmPred)).

Expand Down

0 comments on commit 34a020e

Please sign in to comment.