Skip to content

Commit

Permalink
fix [opm alpha bundle validate error] (#1104)
Browse files Browse the repository at this point in the history
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。
  • Loading branch information
jiuker authored May 2, 2022
1 parent cd17edf commit 8b76d51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/templates/olm-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b76d51

Please sign in to comment.