Skip to content

Commit eceda8b

Browse files
deprecate: CommunityValidator (#199)
The community validator were deprecated. This checks were moved to the external validator: OCP OLM Catalog Validator More info: https://github.com/redhat-openshift-ecosystem/ocp-olm-catalog-validator
1 parent 940ea90 commit eceda8b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

pkg/validation/internal/community.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ const ocpVerV1beta1Unsupported = "4.9"
2929
//
3030
// Note that this validator allows to receive a List of optional values as key=values. Currently, only the
3131
// `index-path` key is allowed. If informed, it will check the labels on the image index according to its criteria.
32+
//
33+
// Deprecated - The checks made for this validator were moved to the external one:
34+
// https://github.com/redhat-openshift-ecosystem/ocp-olm-catalog-validator
35+
//
36+
// Please no longer use this check it will be removed in the next releases.
3237
var CommunityOperatorValidator interfaces.Validator = interfaces.ValidatorFunc(communityValidator)
3338

3439
func communityValidator(objs ...interface{}) (results []errors.ManifestResult) {

pkg/validation/validation.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ var OperatorGroupValidator = internal.OperatorGroupValidator
4040

4141
// CommunityOperatorValidator implements Validator to validate bundle objects
4242
// for the Community Operator requirements.
43+
//
44+
// Deprecated - The checks made for this validator were moved to the external one:
45+
// https://github.com/redhat-openshift-ecosystem/ocp-olm-catalog-validator.
46+
// Please no longer use this check it will be removed in the next releases.
4347
var CommunityOperatorValidator = internal.CommunityOperatorValidator
4448

4549
// AlphaDeprecatedAPIsValidator implements Validator to validate bundle objects

0 commit comments

Comments
 (0)