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

Automate community bundle creation #132

Merged

Conversation

clobrano
Copy link
Contributor

Why we need this PR

The bundle CSV needs to set the PREVIOUS_VERSION variable manually (for "replaces" field).

Changes made

Rework CI to include a manual workflow to release to OKD and K8S Hub, allowing to set some variables.

Which issue(s) this PR fixes

Test plan

All the other operators' Makefile use CSV in place of BUNDLE_CSV

Signed-off-by: Carlo Lobrano <[email protected]>
Copy link
Contributor

openshift-ci bot commented Jul 29, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@clobrano
Copy link
Contributor Author

There is a problem with the OCP_VERSION used in the CI

/hold

Add CI automation to create bundles for K8S and OKD

Removed "replaces" field from config as the field is only required in
OKD.
@clobrano clobrano force-pushed the automate-community-bundle-0 branch from d9de553 to 34feda6 Compare August 1, 2024 07:48
@clobrano
Copy link
Contributor Author

clobrano commented Aug 1, 2024

There is a problem with the OCP_VERSION used in the CI

/hold

fixed. I needed some sleep evidently

/unhold

@clobrano
Copy link
Contributor Author

clobrano commented Aug 2, 2024

/test 4.16-openshift-e2e

@@ -20,6 +20,12 @@ GO_VERSION = 1.20
ENVTEST_K8S_VERSION = 1.28
# See https://github.com/slintes/sort-imports/releases for the last version
SORT_IMPORTS_VERSION = v0.2.1
# OCP Version: for OKD bundle community
OCP_VERSION ?= 4.12
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this here? It's set by CI, not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I remember a discussion where we ended up wanting at least a default version set 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

btw, some other operators have a bug here (SNR and MDR, IIRC), because they assign the value without the ?.

Copy link
Member

Choose a reason for hiding this comment

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

ok...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

aaand I remembered incorrectly... sorry 😓
at the time of the discussion the variable was useful because we didn't have this CI

medik8s/node-healthcheck-operator#300 (comment)

Copy link
Contributor

openshift-ci bot commented Aug 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: clobrano, slintes

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

@clobrano clobrano marked this pull request as ready for review August 2, 2024 10:28
@openshift-ci openshift-ci bot requested review from mshitrit and razo7 August 2, 2024 10:28
@openshift-merge-bot openshift-merge-bot bot merged commit 6af41ad into medik8s:main Aug 2, 2024
27 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