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

Validate release charts #149

Merged
merged 9 commits into from
Sep 11, 2024

Conversation

nicholasSUSE
Copy link
Collaborator

@nicholasSUSE nicholasSUSE commented Sep 6, 2024

Issue: rancher/ecm-distro-tools#469

This solution is only for Checkpoint: 0, defined in the abovementioned issue.

Checkpoint 0: Validate release.yaml

Validation steps:

  • Each chart version in release.yaml DOES NOT modify an already released chart. If so, stop and modify the versions so that it releases a net-new chart.
  • Each chart version in release.yaml IS exactly 1 more patch/minor version than the last released chart version. If not, stop and modify the versions so that it releases a net-new chart.

@nicholasSUSE nicholasSUSE marked this pull request as ready for review September 6, 2024 18:10
@nicholasSUSE nicholasSUSE requested a review from a team as a code owner September 6, 2024 18:10
@nicholasSUSE
Copy link
Collaborator Author

@rancher/release-team
I know the linter is failing, I am on to fix the errors.

@nicholasSUSE
Copy link
Collaborator Author

Ok, I started working on the code the linter pointed, and unit tests started breaking.
I will separate some time to refactor this, for now disregard it.

main.go Show resolved Hide resolved
pkg/auto/validate.go Outdated Show resolved Hide resolved
@nicholasSUSE nicholasSUSE force-pushed the validate-release-charts branch from 25becd5 to 8374739 Compare September 11, 2024 19:06

func validateRelease(c *cli.Context) {
if c.Bool("skip") {
fmt.Println("skipping execution...")

Choose a reason for hiding this comment

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

skipping here doesn't invalidate the whole point of running this command?

@nicholasSUSE
Copy link
Collaborator Author

Bypassing linter until refactoring of legacy code

@nicholasSUSE nicholasSUSE merged commit 3b131ae into rancher:master Sep 11, 2024
2 of 3 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.

2 participants