openstack-k8s-operators / openstack-operator

Meta Operator for OpenStack
https://openstack-k8s-operators.github.io/openstack-operator/
Apache License 2.0
27 stars 76 forks source link

Use empty Alm examples #1027

Closed dprince closed 1 month ago

dprince commented 1 month ago

Previously with csv-merger we removed the Alm examples in the CSV. This is to save space as our bundles are quite large.

Now that we are using the raw data generated by operator-sdk's 'generate bundle' command the config/sample data is getting merged into the generated CSV for openstack-operator. As we had multiple controlplanes in the kustomization.yaml file this meant lots of extra YAML examples which aren't needed.

In order to maintain the previous behavior of effectively removing ALM examples, but still passing bundle generate validations this commit creates '_empty.yaml' versions of each CR and then uses those in the kustomization.yaml.

openshift-ci[bot] commented 1 month ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprince, fao89

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/openstack-k8s-operators/openstack-operator/blob/main/OWNERS)~~ [dprince,fao89] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment