From 38eee240bf7d0d0e42ce0a2a960a4649af8c15df Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Wed, 1 Dec 2021 21:37:37 +0000 Subject: [PATCH] deprecate: CommunityValidator 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 --- pkg/validation/internal/community.go | 5 +++++ pkg/validation/validation.go | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pkg/validation/internal/community.go b/pkg/validation/internal/community.go index 3a42d7ec2..178729b7f 100644 --- a/pkg/validation/internal/community.go +++ b/pkg/validation/internal/community.go @@ -29,6 +29,11 @@ const ocpVerV1beta1Unsupported = "4.9" // // Note that this validator allows to receive a List of optional values as key=values. Currently, only the // `index-path` key is allowed. If informed, it will check the labels on the image index according to its criteria. +// +// Deprecated - The checks made for this validator were moved to the external one: +// https://github.com/redhat-openshift-ecosystem/ocp-olm-catalog-validator +// +// Please no longer use this check it will be removed in the next releases. var CommunityOperatorValidator interfaces.Validator = interfaces.ValidatorFunc(communityValidator) func communityValidator(objs ...interface{}) (results []errors.ManifestResult) { diff --git a/pkg/validation/validation.go b/pkg/validation/validation.go index 3c35db4b1..6268adf24 100644 --- a/pkg/validation/validation.go +++ b/pkg/validation/validation.go @@ -40,6 +40,10 @@ var OperatorGroupValidator = internal.OperatorGroupValidator // CommunityOperatorValidator implements Validator to validate bundle objects // for the Community Operator requirements. +// +// Deprecated - The checks made for this validator were moved to the external one: +// https://github.com/redhat-openshift-ecosystem/ocp-olm-catalog-validator. +// Please no longer use this check it will be removed in the next releases. var CommunityOperatorValidator = internal.CommunityOperatorValidator // AlphaDeprecatedAPIsValidator implements Validator to validate bundle objects