From 8b76d51f1ae4da5e3a636615bac5b1f2ecd2a8c2 Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Tue, 3 May 2022 00:30:45 +0800 Subject: [PATCH] fix [opm alpha bundle validate error] (#1104) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After run olm.sh。minio-operator.clusterserviceversion.yaml will be generated。but when I try to validate it [opm alpha bundle validate --tag image:tag], I found this: Error: Bundle validation errors: Error: Value { Tenant tenants.minio.min.io v1}: CRD tenants.minio.min.io/v1 is present in bundle "minio-operator.vx.x.x" but not defined in CSV 。 To solve this, I change template.When olm.sh run: yq eval-all -i ". as \$item ireduce ({}; . * \$item )" bundles/$RELEASE/manifests/minio-operator.clusterserviceversion.yaml resources/templates/olm-template.yaml it can generate right minio-operator.clusterserviceversion.yaml。 --- resources/templates/olm-template.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/templates/olm-template.yaml b/resources/templates/olm-template.yaml index 5c4bf4a9409..6d8f37fc5cb 100644 --- a/resources/templates/olm-template.yaml +++ b/resources/templates/olm-template.yaml @@ -13,6 +13,9 @@ spec: maturity: stable customresourcedefinitions: owned: + - kind: Tenant + name: tenants.minio.min.io + version: v1 - kind: Tenant name: tenants.minio.min.io version: v2