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

chore: fix helm-testing versioning in publish-chart-yaml #584

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

blaisedias
Copy link
Contributor

Fix helm testing version generation

Description

Replace hard coded patch and minor values of 0,
with values derived from the chart version

That way we get versions derived from chart/Chart.yaml, like 2.7.2-... instead of hard coded values like 2.7.0-... or 2.0.0-....

Motivation and Context

This change is required to build with version numbers that monotonically increase
This makes is possible to test upgrades with setting override flags.

Regression

Is this PR fixing a regression? No

How Has This Been Tested?

tested by executing the modified script using the command line

nix-shell --pure --run './scripts/helm/publish-chart-yaml.sh  --helm-testing helm-testing/release/2.7 --date-time 2024-12-11-10-21-41' ./scripts/helm/shell.nix

Types of changes

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [x ] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added unit tests to cover my changes.

Replace hard coded patch and minor values of 0,
with values derived from the chart version

That way we get versions derived from chart/Chart.yaml,
like 2.7.2-... instead of hard coded values like 2.7.0-... or 2.0.0-....

Signed-off-by: Blaise Dias <[email protected]>
@blaisedias
Copy link
Contributor Author

bors merge

@bors-openebs-mayastor
Copy link
Contributor

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit ad99ea5 into release/2.7 Dec 11, 2024
5 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the helm-testing-version-generation branch December 11, 2024 15:58
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.

4 participants