@@ -17,20 +17,20 @@ type Config struct {
1717 WatchNamespace * string `json:"watchNamespace"`
1818}
1919
20- // UnmarshallConfig returns a deserialized and validated *bundle.Config based on bytes and validated
20+ // UnmarshalConfig returns a deserialized and validated *bundle.Config based on bytes and validated
2121// against rv1 and the desired install namespaces. It will error if:
2222// - rv is nil
2323// - bytes is not a valid YAML/JSON object
2424// - bytes is a valid YAML/JSON object but does not follow the registry+v1 schema
2525// if bytes is nil it will be treated as an empty json object ({})
26- func UnmarshallConfig (bytes []byte , rv1 RegistryV1 , installNamespace string ) (* Config , error ) {
26+ func UnmarshalConfig (bytes []byte , rv1 RegistryV1 , installNamespace string ) (* Config , error ) {
2727 if bytes == nil {
2828 bytes = []byte ("{}" )
2929 }
3030
3131 bundleConfig := & Config {}
3232 if err := yaml .UnmarshalStrict (bytes , bundleConfig ); err != nil {
33- return nil , fmt .Errorf ("error unmarshalling registry+v1 configuration: %w" , formatUnmarshallError (err ))
33+ return nil , fmt .Errorf ("error unmarshalling registry+v1 configuration: %w" , formatUnmarshalError (err ))
3434 }
3535
3636 // collect bundle install modes
@@ -98,8 +98,8 @@ func isWatchNamespaceConfigRequired(bundleInstallModeSet sets.Set[v1alpha1.Insta
9898 ! bundleInstallModeSet .Has (v1alpha1.InstallMode {Type : v1alpha1 .InstallModeTypeAllNamespaces , Supported : true })
9999}
100100
101- // formatUnmarshallError format JSON unmarshal errors to be more readable
102- func formatUnmarshallError (err error ) error {
101+ // formatUnmarshalError format JSON unmarshal errors to be more readable
102+ func formatUnmarshalError (err error ) error {
103103 var unmarshalErr * json.UnmarshalTypeError
104104 if errors .As (err , & unmarshalErr ) {
105105 if unmarshalErr .Field == "" {
0 commit comments