Skip to content

Commit 6d609e9

Browse files
camilamacedo86anik120
authored andcommitted
deprecate: CommunityValidator (openshift#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 Upstream-repository: api Upstream-commit: eceda8b99fe0ad9e8b3ca91ee287c75f52fc898f
1 parent d073e45 commit 6d609e9

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

staging/api/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) {

staging/api/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

vendor/github.com/operator-framework/api/pkg/validation/internal/community.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/operator-framework/api/pkg/validation/validation.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)