Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use empty Alm examples #1027

Merged

Conversation

dprince
Copy link
Contributor

@dprince dprince commented Aug 22, 2024

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.

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.
@@ -1,11 +1,12 @@
## Append samples you want in your CSV to this file as resources ##
# NOTE(dprince): these get added to the bundle ALM examples
# we do not have space for long examples here and want
# to guide users to documentation instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenShift UI takes the first CR to prepopulate the UI, do we really want to get everything empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have always been doing this as csv-merger removed all the alm-examples. This is effectively just restoring that (old) behavior

Copy link
Contributor

openshift-ci bot commented Aug 28, 2024

[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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 8bc923a into openstack-k8s-operators:main Aug 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants