Default Kubernetes image pull policy for Radius chart#11852
Default Kubernetes image pull policy for Radius chart#11852officialasishkumar wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Radius Helm chart to rely on Kubernetes’ default imagePullPolicy behavior (based on the resolved image tag) by removing explicitly-set imagePullPolicy fields from chart-managed workloads, and adds Helm unit tests to prevent regressions.
Changes:
- Remove explicit
imagePullPolicyfrom controller, dashboard, database, and pre-upgrade Job templates. - Add Helm unit coverage asserting
imagePullPolicyis omitted for those chart-managed containers. - Include the pre-upgrade Job template in the test suite’s rendered templates.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| deploy/Chart/tests/helpers_test.yaml | Adds a unit test to assert imagePullPolicy is not emitted and includes the pre-upgrade Job template in the suite. |
| deploy/Chart/templates/controller/deployment.yaml | Removes explicit imagePullPolicy from the controller container. |
| deploy/Chart/templates/dashboard/deployment.yaml | Removes explicit imagePullPolicy from the dashboard container. |
| deploy/Chart/templates/database/statefulset.yaml | Removes explicit imagePullPolicy from the database container. |
| deploy/Chart/templates/pre-upgrade/job.yaml | Removes explicit imagePullPolicy from the pre-upgrade Job container. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11852 +/- ##
==========================================
- Coverage 52.97% 52.96% -0.01%
==========================================
Files 754 754
Lines 48686 48686
==========================================
- Hits 25791 25788 -3
- Misses 20469 20471 +2
- Partials 2426 2427 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@officialasishkumar may you resolve conflicts, thank you! |
|
@officialasishkumar ping :) |
1 similar comment
|
@officialasishkumar ping :) |
Remove explicit imagePullPolicy settings from chart-managed Radius containers so Kubernetes applies its default behavior based on the rendered image tag. Add Helm unit coverage to guard against reintroducing explicit pull policies.\n\nFixes: radius-project#10769 Signed-off-by: Asish Kumar <[email protected]>
0d6507b to
d6a7d2b
Compare
|
Rebased on current main in d6a7d2b; conflicts are resolved and the PR is mergeable. |
Radius functional test overviewClick here to see the test run details
Test Status⌛ Building Radius and pushing container images for functional tests... |
|
Hi @officialasishkumar — thanks for the update and for rebasing! 🙏 This PR is ready to merge except for one thing: Before we can merge, we require all commits to be cryptographically signed so they show as Verified on GitHub. Commit Could you set up commit signing (GPG, SSH, or S/MIME — SSH is usually easiest) and re-sign your commit? Our contributing guide walks through it here: Signing your commits. Once configured, you can re-sign the existing commit with |
Description
The Radius Helm chart explicitly set
imagePullPolicyon several chart-managed containers. This causedAlwayspulls for controller, dashboard, and pre-upgrade and an explicitIfNotPresentfor database instead of letting Kubernetes choose the default from the rendered image tag.This removes the explicit policy from controller, dashboard, database, and pre-upgrade templates and adds Helm unit coverage that those containers omit
imagePullPolicy. A render check confirms noimagePullPolicyfields are emitted when dashboard, database, and pre-upgrade are enabled.Type of change
Fixes: #10769
Contributor checklist
Please verify that the PR meets the following requirements, where applicable:
eng/design-notes/in this repository, if new APIs are being introduced.