Skip to content

helm: implement imagePullSecrets and add missing Job pod labels#462

Merged
harshavardhana merged 1 commit into
minio:masterfrom
aimd54:fix/helm-imagePullSecrets-and-job-labels
Feb 27, 2026
Merged

helm: implement imagePullSecrets and add missing Job pod labels#462
harshavardhana merged 1 commit into
minio:masterfrom
aimd54:fix/helm-imagePullSecrets-and-job-labels

Conversation

@aimd54

@aimd54 aimd54 commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Implement imagePullSecrets in both job.yaml and statefulset.yaml. This value was declared in values.yaml but never referenced in any template, silently ignoring it for users with private registries
  • Add standard selector labels to the Job pod template metadata: the StatefulSet already had them, but the Job only emitted metadata conditionally (when restartOnUpgrade was true), leaving pods unlabeled otherwise

Test plan

  • helm lint k8s/helm/ passes
  • helm template with imagePullSecrets set renders the field in both Job and StatefulSet
  • helm template with default values omits imagePullSecrets (empty list)
  • Job pod template always has selector labels regardless of restartOnUpgrade setting

imagePullSecrets was declared in values.yaml but never referenced in
any template, silently ignoring the value for private registries.
Also, the Job pod template was missing standard selector labels that
the StatefulSet already had.

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

This pull request fixes two issues in the Warp Helm chart: implementing the previously unused imagePullSecrets field and ensuring Job pods always have proper selector labels. The imagePullSecrets field was declared in values.yaml but never referenced in the templates, preventing users with private registries from pulling images. Additionally, Job pod template metadata was only emitted conditionally when restartOnUpgrade was true, leaving pods without selector labels in other cases.

Changes:

  • Implemented imagePullSecrets support in both StatefulSet and Job pod specs using the standard Helm with pattern
  • Fixed Job pod template metadata to always include selector labels, moving them outside the restartOnUpgrade conditional block

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
k8s/helm/templates/statefulset.yaml Added imagePullSecrets block to pod spec with proper conditional rendering
k8s/helm/templates/job.yaml Added imagePullSecrets block and fixed pod metadata to always include selector labels

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

@ramondeklein ramondeklein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@harshavardhana harshavardhana merged commit ee919da into minio:master Feb 27, 2026
11 checks passed
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