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 auto bump functionality in release charts #3365

Merged
merged 4 commits into from
Feb 21, 2025

Conversation

thardeck
Copy link
Contributor

@thardeck thardeck commented Feb 17, 2025

until the issue is fixed in the charts Github action.

Succesful run

The release charts action will be obsolete as soon as Rancher 2.9 is EOL and the auto bump part works for later Rancher versions as expected.

It does already for Rancher 2.10.

@thardeck thardeck self-assigned this Feb 17, 2025
@thardeck thardeck requested a review from a team as a code owner February 17, 2025 17:05
@thardeck thardeck force-pushed the use_auto_bump_in_charts_update branch from 1c8fb94 to d3aa8d5 Compare February 17, 2025 17:07
@thardeck thardeck enabled auto-merge (rebase) February 17, 2025 17:34
@thardeck thardeck force-pushed the use_auto_bump_in_charts_update branch 5 times, most recently from 88cccbf to e372e2f Compare February 20, 2025 16:42
@thardeck thardeck force-pushed the use_auto_bump_in_charts_update branch from e372e2f to 7779cf6 Compare February 20, 2025 16:43
Github actions by default provides a field for selecting the
working branch and this is used for checking out the according
branches.
@thardeck thardeck force-pushed the use_auto_bump_in_charts_update branch 4 times, most recently from 75ae6b6 to 94f3858 Compare February 21, 2025 10:28
@thardeck thardeck marked this pull request as draft February 21, 2025 10:36
auto-merge was automatically disabled February 21, 2025 10:36

Pull request was converted to draft

@thardeck thardeck force-pushed the use_auto_bump_in_charts_update branch 6 times, most recently from c92998c to e416fc9 Compare February 21, 2025 14:01
because parts of the latest Rancher doe not support kubernetes 1.32
by annotation.
@thardeck thardeck force-pushed the use_auto_bump_in_charts_update branch from e416fc9 to fe46617 Compare February 21, 2025 14:14
@thardeck thardeck marked this pull request as ready for review February 21, 2025 14:21
find ./packages/fleet/ -type f -exec sed -i -e "s/version: ${PREV_CHART_VERSION}/version: ${NEW_CHART_VERSION}/g" {} \;
if [[ "$(git rev-parse --abbrev-ref HEAD)" =~ dev-v2\.1[0-9]+ ]]; then
# Use new auto bump scripting until the Github action CI works as expected
# no parameters besides the target branch are needed in theory, but the pr
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I understand this comment, as those parameters seem to be very much required 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As soon as the auto bump works as expected we do not need this script anymore to bump the charts.

I am using the command make chart-bump package=fleet branch="$(git rev-parse --abbrev-ref HEAD)" of the auto bump automation which extracts the latest fleet and chart version on its own, so nothing needs to be provided.

But since there was an issue we rely on our script which still needs these values for creating the pr. It would be possible to extract them too, but not worth it since it should be not needed in the future.

@thardeck thardeck merged commit 9309ddd into main Feb 21, 2025
14 checks passed
@thardeck thardeck deleted the use_auto_bump_in_charts_update branch February 21, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants