If a user were to `make build` Rook, and after the Ceph CSV was generated and before make had finished, the Rook repo would be left with changes caused by the build modifying files temporarily in-place. All CSV template generation in the Ceph makefile is now self-contained and can be configured to operate outside of the main repo so that files are not modified in-place. In-place modification of files was also incorrect. On Mac some files with `-e` trailing were left, and in-place backups were also present in the form `<filename>''`. Therefore, also fix the generation to fix in-place modifications. Signed-off-by: Blaine Gardner <blaine.gardner@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.