forked from rook/rook
It looks like combining --append with --overwrite will cause duplicate entries of our CRDs in the CSV definition. Removing the flag fixes the duplicates. Diff before and after the fix: ``` 1118c1118 < createdAt: 2021-01-22T11-07-27Z --- > createdAt: 2021-01-22T11-06-24Z 1126a1127,1159 > - kind: CephBlockPool > name: cephblockpools.ceph.rook.io > version: v1 > - kind: CephClient > name: cephclients.ceph.rook.io > version: v1 > - kind: CephCluster > name: cephclusters.ceph.rook.io > version: v1 > - kind: CephFilesystem > name: cephfilesystems.ceph.rook.io > version: v1 > - kind: CephNFS > name: cephnfses.ceph.rook.io > version: v1 > - kind: CephObjectRealm > name: cephobjectrealms.ceph.rook.io > version: v1 > - kind: CephObjectStore > name: cephobjectstores.ceph.rook.io > version: v1 > - kind: CephObjectStoreUser > name: cephobjectstoreusers.ceph.rook.io > version: v1 > - kind: CephObjectZoneGroup > name: cephobjectzonegroups.ceph.rook.io > version: v1 > - kind: CephObjectZone > name: cephobjectzones.ceph.rook.io > version: v1 > - kind: CephRBDMirror > name: cephrbdmirrors.ceph.rook.io > version: v1 ``` Co-authored-by: Umanga Chapagain chapagainumanga@gmail.com Signed-off-by: Sébastien Han <seb@redhat.com>
Build Rook's CSV file
Just run make CSV_VERSION=1.0.0 csv-ceph like this:
$ make csv-ceph CSV_VERSION=1.0.1 CSV_PLATFORM=k8s ROOK_OP_VERSION=rook/ceph:v1.0.1
INFO[0000] Generating CSV manifest version 1.0.1
INFO[0000] Fill in the following required fields in file deploy/olm-catalog/ceph.csv.yaml:
spec.keywords
spec.maintainers
spec.provider
spec.labels
INFO[0000] Create deploy/olm-catalog/ceph.csv.yaml
INFO[0000] Create deploy/olm-catalog/_generated.concat_crd.yaml
Congratulations!
Your Rook CSV 1.0.1 file for k8s is ready at: cluster/olm/ceph/deploy/olm-catalog/rook-ceph.v1.0.1.clusterserviceversion.yaml
Push it to https://github.com/operator-framework/community-operators as well as the CRDs files from cluster/olm/ceph/deploy/crds and the package file cluster/olm/ceph/assemble/rook-ceph.package.yaml.
Or for OpenShift use: $ make CSV_VERSION=1.0.0 CSV_PLATFORM=ocp csv-ceph.