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

[release-0.3] Update OKD community bundle PR automation #144

Conversation

clobrano
Copy link
Contributor

@clobrano clobrano commented Aug 9, 2024

This is the merge of branch automate-community-bundles-pr-0 of #135

Plus a commit for the missing definition of a Makefile variable

clobrano and others added 26 commits January 25, 2024 19:02
Add utility Makefile target to revert version, icon and dates from CSV
before committing new changes.

Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Makefile target to revert all version or build date related changes
This workflow will:
- build OKD bundle for MDR
- clone upstream redhat-openshift-ecosystem/community-operators-prod
- copy MDR's OKD bundle to the appropriate folder
- create dev branch, commit changes and push to our fork
  medik8s/community-operators-prod from which we can manually review and
  create the PR

Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Is currently not possible to create a test bundle (e.g. with changes or
custom IMAGE_REGISTRY) due to `docker-build` target running
`verify-no-changes` recipe

Let `docker-build` run only `test-no-verify-changes` to permit test
bundles creation.

Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
…get-0

Remove catalog creation from Makefile
…th-changes-0

Allow to create a test bundle for development
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
…ndle-1

Adopt reusable workflow for Red Hat Community bundle creation
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
…rsion-check-0

Fix verify-previous-version Makefile target
Currently, installing the latest z version of golang from the go
toolchain available in the repository (via go get) is failing with the
following error:

go: updating go.mod requires go >= 1.21.8 (running go 1.21.7; GOTOOLCHAIN=local)

To fix it, this change installs directly the wanted version from
https://golang.org/dl without using the distribution repository.

Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Use the latest version of shared GitHub Action to create the OKD
community bundle PR (MDR only has OKD bundle, no K8s)

Create a manual workflow to provide the necessary inputs to the shared
GitHub Action to:
- build and push versioned images to quay registry
- create the OKD release branch, ready for the PR

Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
- we can set previous_version and ocp_version are mandatory, since MDR
  only supports OKD release bundle.
- meeDamian/github-release needs tag as input.
- replace github.ref_name with inputs.version in release body.
- uniform target bundle-community-okd (in place of -rh) like the other
  operators have.
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Copy link
Contributor

openshift-ci bot commented Aug 9, 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

clobrano commented Aug 9, 2024

There were too many bits missing in release-0.3 to do just a cherry-pick. This affects only the ability to create the bundle PR to OKD from this branch however, so if you think it is not the right way to move on, I can drop the PR and do the OKD PR manually.

Copy link
Contributor

openshift-ci bot commented Aug 9, 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 10, 2024 19:41
@openshift-merge-bot openshift-merge-bot bot merged commit b596098 into medik8s:release-0.3 Aug 10, 2024
27 checks passed
@clobrano clobrano deleted the release-0.3-update-okd-community-bundle-pr-automation-1 branch August 11, 2024 06:33
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