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
Separate Category and Capability Validation (#304)
This commit removes the default set of category and capability validation
as a part of the operatorhubio validator.
As we have a mechanism for custom category validation, and there is
significantly more churn on that specific validation, this commit
separates the default operatorhubio validator from a distinct default
categories validator. This allows users that want to continue to use the
default set of categories to still do so, and if there are custom
categories they would like to include they are free to use the dynamic
categories validation option instead.
This commit also does the same separation for capability validation.
There is no implementation of custom capability validation (as there is
less churn and no explicit need for that yet) -- adding custom
capability validation should be trivial in a future commit.
This commit accomplishes this by deprecating the existing validator and
creating a v2 version of the operatorhubio validator.
Additionally, this commit adds 'Observability' to the category list.
deprecationResultWarning.Add(errors.WarnDeprecatedValidator(`The "operatorhub" validator is deprecated; for equivalent validation use "operatorhub/v2", "standardcapabilities" and "standardcategories" validators`))
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Maintainers email invalidemail is invalid: mail: missing '@' or angle-addr`,
33
33
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Links elements should contain both name and url`,
34
34
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Links url https//coreos.com/operators/etcd/docs/latest/ is invalid: parse "https//coreos.com/operators/etcd/docs/latest/": invalid URI for request`,
35
-
`Error: Value : (etcdoperator.v0.9.4) csv.Metadata.Annotations.Capabilities Installs and stuff is not a valid capabilities level`,
35
+
`Error: Value : (etcdoperator.v0.9.4) csv.Metadata.Annotations.Capabilities "Installs and stuff" is not a valid capabilities level`,
36
36
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Icon should only have one element`,
37
-
`Error: Value : (etcdoperator.v0.9.4) csv.Metadata.Annotations["categories"] value Magic is not in the set of default categories`,
37
+
`Error: Value : (etcdoperator.v0.9.4) csv.Metadata.Annotations["categories"] value "Magic" is not in the set of standard categories`,
38
38
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Version must be set`,
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Provider.Name not specified`,
29
+
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Maintainers elements should contain both name and email`,
30
+
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Maintainers email invalidemail is invalid: mail: missing '@' or angle-addr`,
31
+
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Links elements should contain both name and url`,
32
+
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Links url https//coreos.com/operators/etcd/docs/latest/ is invalid: parse "https//coreos.com/operators/etcd/docs/latest/": invalid URI for request`,
33
+
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Icon should only have one element`,
34
+
`Error: Value : (etcdoperator.v0.9.4) csv.Spec.Version must be set`,
0 commit comments