Skip to content

[minio] add podLabels, serviceAccount and priorityClass to bucke…#1218

Open
ixxeL2097 wants to merge 1 commit intoCloudPirates-io:mainfrom
GitGuardian:fix/minio-bucket-init-podlabels-upstream
Open

[minio] add podLabels, serviceAccount and priorityClass to bucke…#1218
ixxeL2097 wants to merge 1 commit intoCloudPirates-io:mainfrom
GitGuardian:fix/minio-bucket-init-podlabels-upstream

Conversation

@ixxeL2097
Copy link
Copy Markdown
Contributor

@ixxeL2097 ixxeL2097 commented Apr 10, 2026

Summary

The bucket initialization job template is missing several features that the Deployment template already supports. This causes issues for users deploying with ArgoCD, service meshes (Istio), or Workload Identity.

Changes

Template (bucket-init-job.yaml):

  • bucketInitJob.podLabels — inject custom labels into the job's pod spec (e.g. sidecar.istio.io/inject: "false")
  • commonLabels propagation — pod template now uses minio.labels instead of minio.selectorLabels, so commonLabels are propagated to job pods (needed for network policies, Kyverno/OPA)
  • serviceAccountName — the job now uses the chart's ServiceAccount (needed for IRSA/Workload Identity)
  • priorityClassName — support priority class on the job pods
  • Rename post-jobbucket-init — aligns the Job resource name with the ConfigMap and container name which already use bucket-init

Values (values.yaml):

  • Add bucketInitJob.podLabels: {} parameter
  • Remove dead postJob section (was not referenced by any template)
  • Add Helm hook usage example as a comment under bucketInitJob.annotations

Tests:

  • New bucket-init-job_test.yaml test suite (9 tests covering podLabels, commonLabels, serviceAccount, priorityClassName, podAnnotations)

Other:

  • Version bump 0.12.00.13.0
  • Regenerated values.schema.json

Motivation

Reported by a customer deploying on OpenShift with ArgoCD: podLabels values set under bucketInitJob were not rendered in the pod spec because the template didn't consume them. The postJob values section was also confusing as it was completely unused dead code.

Test plan

  • helm unittest charts/minio/ — all 26 tests pass
  • helm lint charts/minio/ — no errors

…t-init job

The bucket-init job template was missing several features compared to
the Deployment template:
- podLabels injection (needed for ArgoCD / Istio sidecar control)
- commonLabels propagation to pod template
- serviceAccountName (needed for IRSA/Workload Identity)
- priorityClassName support

Also fixes:
- Job name regression from upstream sync (post-job -> bucket-init)
- Remove dead postJob values section

Ref: ENT-3741
@ixxeL2097 ixxeL2097 changed the title feat(minio): add podLabels, serviceAccount and priorityClass to bucke… [minio] add podLabels, serviceAccount and priorityClass to bucke… Apr 10, 2026
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.

1 participant