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
* Compute target namespace defaults
Signed-off-by: Per Goncalves da Silva <[email protected]>
* Update target namespace validation to reject own namespace installation on single namespace mode
Signed-off-by: Per Goncalves da Silva <[email protected]>
* Update WithTargetNamespace behavior and MultiNamespace validation
Signed-off-by: Per Goncalves da Silva <[email protected]>
---------
Signed-off-by: Per Goncalves da Silva <[email protected]>
Co-authored-by: Per Goncalves da Silva <[email protected]>
returnfmt.Errorf("supported install modes %v do not support target namespaces %v", sets.List[string](supportedInstallModes), targetNamespaces)
192
+
returnfmt.Errorf("supported install modes %v do not support target namespaces %v", sets.List[v1alpha1.InstallModeType](supportedInstallModes), targetNamespaces)
err: errors.New("invalid option(s): invalid target namespaces [install-namespace]: supported install modes [AllNamespaces] do not support target namespaces [install-namespace]"),
102
+
err: errors.New("invalid option(s): invalid target namespaces [install-namespace]: supported install modes [AllNamespaces] do not support targeting own namespace"),
104
103
}, {
105
104
name: "rejects install out of own namespace if only OwnNamespace install mode is supported",
err: errors.New("invalid option(s): invalid target namespaces [n1 n2 n3 install-namespace]: supported install modes [MultiNamespace] do not support targeting own namespace"),
0 commit comments