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

Set Replace Annotation #115

Merged
merged 1 commit into from
Dec 28, 2023
Merged

Conversation

razo7
Copy link
Member

@razo7 razo7 commented Dec 26, 2023

Even though we use 'skipRange' for defining from which versions we can update to the version of the CSV, we also need to add the 'replace' field. It should point to the last released version and ensure that the old version isn't deleted from the index.

docs.engineering.redhat.com/display/CFC/Best_Practices#Best_Practices-SkipRange

Similar to medik8s/self-node-remediation#167, medik8s/node-maintenance-operator#108 and related to ECOPROJECT-1771

Copy link
Contributor

openshift-ci bot commented Dec 26, 2023

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

Copy link
Contributor

openshift-ci bot commented Dec 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: razo7

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

@razo7
Copy link
Member Author

razo7 commented Dec 27, 2023

/test 4.14-openshift-e2e
/test 4.15-openshift-e2e

Makefile Outdated
sed -r -i "s|containerImage: .*|containerImage: $(IMG)|;" ${BUNDLE_CSV}
sed -r -i "s|createdAt: .*|createdAt: `date '+%Y-%m-%d %T'`|;" ${BUNDLE_CSV}
sed -r -i "s|replaces: .*|replaces: self-node-remediation.v${PREVIOUS_VERSION}|;" ${BUNDLE_CSV}
Copy link
Member

Choose a reason for hiding this comment

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

self-node-remediation looks like a copy paste miss 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, you got me

Even though we use 'skipRange' for defining from which versions we can update to the version of the CSV, we also need to add the 'replace' field. It should point to the last released version, and ensures that the old version isn't deleted from the index.
@razo7
Copy link
Member Author

razo7 commented Dec 27, 2023

/test 4.14-openshift-e2e
/test 4.15-openshift-e2e

@mshitrit
Copy link
Member

/lgtm

In any case I suggest doing couple a simple check (in case you haven't done already) before merging that works as expected.
something like:
PREVIOUS_VERSION=0.1.0 VERSION=0.2.0 make bundle-update
VERSION=0.2.0 make bundle-update - should be rejected
make bundle-update

@openshift-ci openshift-ci bot added the lgtm label Dec 28, 2023
@razo7 razo7 marked this pull request as ready for review December 28, 2023 09:20
@razo7
Copy link
Member Author

razo7 commented Dec 28, 2023

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 1ff8b7c into medik8s:main Dec 28, 2023
18 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