You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
"The minimum interval at which watched resources are reconciled (e.g. 15m)",
86
87
)
87
88
89
+
flag.StringVar(
90
+
&watchNamespace,
91
+
"namespace",
92
+
"",
93
+
"Namespace that the controller watches to reconcile cluster-api objects. If unspecified, the controller watches for cluster-api objects across all namespaces.",
94
+
)
95
+
88
96
flag.IntVar(&webhookPort,
89
97
"webhook-port",
90
98
0,
@@ -95,6 +103,10 @@ func main() {
95
103
96
104
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
97
105
106
+
ifwatchNamespace!="" {
107
+
setupLog.Info("Watching cluster-api objects only in namespace for reconciliation", "namespace", watchNamespace)
108
+
}
109
+
98
110
// Machine and cluster operations can create enough events to trigger the event recorder spam filter
99
111
// Setting the burst size higher ensures all events will be recorded and submitted to the API
0 commit comments