Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b5e3428

Browse files
Mikalai Radchukm1kola
Mikalai Radchuk
authored andcommittedJun 12, 2024·
Improve error message for all namespaces
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
1 parent 2cb02e5 commit b5e3428

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎pkg/convert/registryv1.go

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func validateTargetNamespaces(supportedInstallModes sets.Set[string], installNam
148148
if supportedInstallModes.Has(string(v1alpha1.InstallModeTypeAllNamespaces)) {
149149
return nil
150150
}
151+
return fmt.Errorf("supported install modes %v do not support targeting all namespaces", sets.List(supportedInstallModes))
151152
case set.Len() == 1 && !set.Has(""):
152153
if supportedInstallModes.Has(string(v1alpha1.InstallModeTypeSingleNamespace)) {
153154
return nil

0 commit comments

Comments
 (0)
This repository has been archived.