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

Cherry picking the fix for helm chart version issue #8200

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

vishwahiremat
Copy link
Contributor

Description

Cherry picking #8196 into release branch.

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).
  • This pull request adds or changes features of Radius and has an approved issue (issue link required).
  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

Fixes: #8195

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
  • If applicable, design document has been reviewed and approved by Radius maintainers/approvers.
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.

Signed-off-by: Vishwanath Hiremath [email protected]
(cherry picked from commit 5832dea)

Description

Please explain the changes you've made.

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).
  • This pull request adds or changes features of Radius and has an approved issue (issue link required).
  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

Fixes: #issue_number

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
  • If applicable, design document has been reviewed and approved by Radius maintainers/approvers.
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.

# Description

To find the correct helm chart version in our code, we search for the
release major value but wildcard the patch value. We need to update the
versioning logic during the Helm install to handle a few different
cases:
1. If there is a pre-release version (i.e. -rc1, -rc2, etc), we want to
find a helm chart version that is an exact match
2. If there is a full release version, we want to find a helm chart
version that matches the release value but wildcards the patch value (in
case we have a patch release)
3. For dev builds, the release version will always be `0.42.42-dev` so
this value should be hardcoded as the version.

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #8195

## Contributor checklist
Please verify that the PR meets the following requirements, where
applicable:

- [ ] An overview of proposed schema changes is included in a linked
GitHub issue.
- [ ] A design document PR is created in the [design-notes
repository](https://github.com/radius-project/design-notes/), if new
APIs are being introduced.
- [ ] If applicable, design document has been reviewed and approved by
Radius maintainers/approvers.
- [ ] A PR for the [samples
repository](https://github.com/radius-project/samples) is created, if
existing samples are affected by the changes in this PR.
- [ ] A PR for the [documentation
repository](https://github.com/radius-project/docs) is created, if the
changes in this PR affect the documentation or any user facing updates
are made.
- [ ] A PR for the [recipes
repository](https://github.com/radius-project/recipes) is created, if
existing recipes are affected by the changes in this PR.

---------

Signed-off-by: Vishwanath Hiremath <[email protected]>
(cherry picked from commit 5832dea)
@radius-functional-tests
Copy link

radius-functional-tests bot commented Jan 7, 2025

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref fcc4184
Unique ID funcd990eef12c
Image tag pr-funcd990eef12c
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr:
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-funcd990eef12c
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-funcd990eef12c
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-funcd990eef12c
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funcd990eef12c
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funcd990eef12c
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting corerp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ corerp-cloud functional tests succeeded
✅ ucp-cloud functional tests succeeded

Copy link

github-actions bot commented Jan 7, 2025

Unit Tests

3 526 tests  ±0   3 522 ✅ ±0   5m 11s ⏱️ +3s
  287 suites ±0       4 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit fcc4184. ± Comparison against base commit ed48e92.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 60.05%. Comparing base (ed48e92) to head (fcc4184).
Report is 1 commits behind head on release/0.42.

Files with missing lines Patch % Lines
pkg/cli/helm/cluster.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release/0.42    #8200      +/-   ##
================================================
- Coverage         60.09%   60.05%   -0.04%     
================================================
  Files               584      584              
  Lines             38675    38680       +5     
================================================
- Hits              23240    23231       -9     
- Misses            13728    13739      +11     
- Partials           1707     1710       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vishwahiremat vishwahiremat merged commit 29d11a5 into release/0.42 Jan 7, 2025
29 checks passed
@vishwahiremat vishwahiremat deleted the vishwahiremat/fixHelmVersioningIssue branch January 7, 2025 23:44
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