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

Adapt update-rancher-charts to support an empty release.yaml file #200

Conversation

salasberryfin
Copy link
Contributor

@salasberryfin salasberryfin commented Jul 7, 2023

Description

When creating a PR against rancher/charts while releasing a new version of the operator, if REPLACE=true (e.g. bumping rc versions) and release.yaml in the charts repository is empty (this file is periodically cleaned), the workflow will not update the release file with the updated versions.

Fix

This change adds an extra validation when REPLACE=true, and only tries to substitute versions if release.yaml already contains an entry for rancher-eks-operator. If it is not, it will populate the file treating it as empty.

Followed the style used in Fleet for the validation.

@salasberryfin salasberryfin requested a review from a team as a code owner July 7, 2023 11:19
@alexander-demicev alexander-demicev merged commit 42b9743 into rancher:master Jul 7, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants