mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-08 06:15:40 +00:00
Limit kubebuilder controllers to work only for objects in own namespaces
Signed-off-by: F. Gold <fgold@vmware.com>
This commit is contained in:
@@ -303,7 +303,8 @@ func newServer(f client.Factory, config serverConfig, logger *logrus.Logger) (*s
|
||||
corev1api.AddToScheme(scheme)
|
||||
|
||||
mgr, err := ctrl.NewManager(clientConfig, ctrl.Options{
|
||||
Scheme: scheme,
|
||||
Scheme: scheme,
|
||||
Namespace: f.Namespace(),
|
||||
})
|
||||
if err != nil {
|
||||
cancelFunc()
|
||||
|
||||
Reference in New Issue
Block a user