Skip to content

Commit 42f01b5

Browse files
author
Per G. da Silva
committed
Add check for install mode support
Signed-off-by: Per G. da Silva <[email protected]>
1 parent 9e91356 commit 42f01b5

File tree

1 file changed

+3
-1
lines changed
  • internal/operator-controller/rukpak/render/registryv1/validators

1 file changed

+3
-1
lines changed

internal/operator-controller/rukpak/render/registryv1/validators/validator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ func CheckConversionWebhookSupport(rv1 *bundle.RegistryV1) []error {
116116
if hasConversionWebhooks {
117117
supportedInstallModes := sets.Set[v1alpha1.InstallModeType]{}
118118
for _, mode := range rv1.CSV.Spec.InstallModes {
119-
supportedInstallModes.Insert(mode.Type)
119+
if mode.Supported {
120+
supportedInstallModes.Insert(mode.Type)
121+
}
120122
}
121123
if len(supportedInstallModes) != 1 || !supportedInstallModes.Has(v1alpha1.InstallModeTypeAllNamespaces) {
122124
sortedModes := slices.Sorted(slices.Values(supportedInstallModes.UnsortedList()))

0 commit comments

Comments
 (0)