Skip to content

Default Kubernetes image pull policy for Radius chart#11852

Open
officialasishkumar wants to merge 2 commits into
radius-project:mainfrom
officialasishkumar:fix/helm-image-pull-policy
Open

Default Kubernetes image pull policy for Radius chart#11852
officialasishkumar wants to merge 2 commits into
radius-project:mainfrom
officialasishkumar:fix/helm-image-pull-policy

Conversation

@officialasishkumar
Copy link
Copy Markdown
Contributor

Description

The Radius Helm chart explicitly set imagePullPolicy on several chart-managed containers. This caused Always pulls for controller, dashboard, and pre-upgrade and an explicit IfNotPresent for 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 no imagePullPolicy fields are emitted when dashboard, database, and pre-upgrade are enabled.

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).

Fixes: #10769

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.
    • Yes
    • Not applicable
  • A design document is added or updated under eng/design-notes/ in this repository, if new APIs are being introduced.
    • Yes
    • Not applicable
  • The design document has been reviewed and approved by Radius maintainers/approvers.
    • Yes
    • Not applicable
  • A PR for resource-types-contrib is created, if resource types or recipes are affected by the changes in this PR.
    • Yes
    • Not applicable
  • A PR for dashboard is created, if the Radius Dashboard is affected by the changes in this PR.
    • Yes
    • Not applicable
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
    • Yes
    • Not applicable

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 <officialasishkumar@gmail.com>
Copilot AI review requested due to automatic review settings May 11, 2026 18:51
@officialasishkumar officialasishkumar requested review from a team as code owners May 11, 2026 18:51
@officialasishkumar officialasishkumar requested a deployment to external-contributor-approval May 11, 2026 18:51 — with GitHub Actions Waiting
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 imagePullPolicy from controller, dashboard, database, and pre-upgrade Job templates.
  • Add Helm unit coverage asserting imagePullPolicy is 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.

@brooke-hamilton brooke-hamilton requested a deployment to external-contributor-approval May 12, 2026 16:33 — with GitHub Actions Waiting
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.40%. Comparing base (0b326ae) to head (0d6507b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11852      +/-   ##
==========================================
+ Coverage   51.38%   51.40%   +0.01%     
==========================================
  Files         716      716              
  Lines       45106    45106              
==========================================
+ Hits        23178    23186       +8     
+ Misses      19725    19721       -4     
+ Partials     2203     2199       -4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm chart has always for imagePullPolicy

5 participants