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
🌱 Add registry+v1 bundle config unmarshal and validation layer (#2278)
* Add registry+v1 bundle config unmarshal function
Signed-off-by: Per G. da Silva <[email protected]>
* Update manifest provider to use config unmarshal and remove getWatchNamespace
Signed-off-by: Per G. da Silva <[email protected]>
* Address reviewer comments and add required case
Signed-off-by: Per G. da Silva <[email protected]>
---------
Signed-off-by: Per G. da Silva <[email protected]>
Co-authored-by: Per G. da Silva <[email protected]>
return"", fmt.Errorf("invalid watch namespace '%s': namespace must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character", watchNamespace)
expectedErrMessage: `invalid bundle configuration: error unmarshalling registry+v1 configuration: invalid value type for field "watchNamespace": expected "string" but got "object"`,
require.Equal(t, "unsupported bundle: bundle does not support AllNamespaces install mode", err.Error())
277
242
})
278
243
244
+
t.Run("rejects bundles without AllNamespaces install mode and with SingleNamespace support when Single/OwnNamespace install mode support is enabled", func(t*testing.T) {
t.Run("rejects bundles without AllNamespaces install mode and with OwnNamespace support when Single/OwnNamespace install mode support is disabled", func(t*testing.T) {
t.Run("accepts bundles without AllNamespaces install mode and with SingleNamespace support when Single/OwnNamespace install mode support is enabled", func(t*testing.T) {
0 commit comments