Skip to content

[release/v1.5] Add image pull secret support#349

Open
Abhishek-Valaboju wants to merge 2 commits into
rancher:release/v1.5from
Abhishek-Valaboju:imagePullSecrets-v1.5
Open

[release/v1.5] Add image pull secret support#349
Abhishek-Valaboju wants to merge 2 commits into
rancher:release/v1.5from
Abhishek-Valaboju:imagePullSecrets-v1.5

Conversation

@Abhishek-Valaboju

@Abhishek-Valaboju Abhishek-Valaboju commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

issue : rancher/rancher#54979
Add support for imagePullSecrets in the compliance-operator chart.

Changes

  • Added a reusable imagePullSecrets helper template.
  • Added imagePullSecrets support to the compliance-operator Deployment.
  • Added imagePullSecrets support to the patch-sa Job.
  • Added imagePullSecrets support to the compliance-scan-serviceaccount.
  • Added global.cattle.imagePullSecrets to chart values.

Approach
The security scan jobs created by compliance-operator run using the compliance-scan-serviceaccount ServiceAccount (ClusterScanSA).Pods automatically inherit imagePullSecrets configured on their ServiceAccount.
Since the scan jobs already reference compliance-scan-serviceaccount, adding imagePullSecrets to the ServiceAccount allows dynamically created scan pods (security-scan and sonobuoy) to use imagePullSecrets without requiring changes to the operator’s Go code or Job PodSpec generation logic.

@Abhishek-Valaboju Abhishek-Valaboju changed the title add image pull secret support [release/v1.5] Add image pull secret support Jun 17, 2026
@Abhishek-Valaboju Abhishek-Valaboju force-pushed the imagePullSecrets-v1.5 branch 3 times, most recently from 324ff3a to 6d13e40 Compare June 17, 2026 09:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds Helm chart support for configuring imagePullSecrets so the operator, the patch-sa hook Job, and dynamically created scan pods (via compliance-scan-serviceaccount) can pull images from private registries without requiring Go/operator changes.

Changes:

  • Introduces a reusable Helm helper to render imagePullSecrets from global.cattle.imagePullSecrets.
  • Wires imagePullSecrets into the operator Deployment, the patch-sa Job PodSpec, and the scan ServiceAccount.
  • Bumps chart version / appVersion and the operator image tag to v1.5.0-rc.4.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
chart/values.yaml Adds global.cattle.imagePullSecrets and bumps operator tag.
chart/templates/_helpers.tpl Adds helper template to render imagePullSecrets.
chart/templates/deployment.yaml Applies helper output to operator PodSpec.
chart/templates/patch_default_serviceaccount.yaml Applies helper output to patch-sa Job PodSpec.
chart/templates/serviceaccount.yaml Applies helper output to compliance-scan-serviceaccount.
chart/Chart.yaml Bumps chart version and appVersion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread chart/templates/_helpers.tpl
@Abhishek-Valaboju Abhishek-Valaboju marked this pull request as ready for review June 22, 2026 06:48
@Abhishek-Valaboju Abhishek-Valaboju requested a review from a team as a code owner June 22, 2026 06:48
@Abhishek-Valaboju Abhishek-Valaboju requested a review from a team June 22, 2026 06:48

@HarrisonWAffel HarrisonWAffel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM once the existing copilot comment is addressed

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

3 participants