Skip to content

Support global.imagePullSecrets in both helm charts#832

Merged
HoustonPutman merged 8 commits into
apache:mainfrom
mattiasbpersson:fix/global-imagePullSecrets
Jun 18, 2026
Merged

Support global.imagePullSecrets in both helm charts#832
HoustonPutman merged 8 commits into
apache:mainfrom
mattiasbpersson:fix/global-imagePullSecrets

Conversation

@mattiasbpersson

Copy link
Copy Markdown
Contributor

Description

Adds global.imagePullSecrets support to the solr-operator helm chart deployment.

The existing image.imagePullSecret field is rendered inside containers[] in the deployment template, which is not a valid Kubernetes pod spec field. Kubernetes silently ignores it, so pull secrets are never applied to the operator pod. This makes it impossible to deploy the solr-operator from a private registry.

This PR adds global.imagePullSecrets at the pod spec level (spec.template.spec.imagePullSecrets), consistent with how the solr helm chart already handles it.

Supports both formats:

  • Kubernetes-native: [{name: "my-secret"}]
  • Plain strings: ["my-secret"]

Changes

  • values.yaml — Added global.imagePullSecrets default
  • templates/deployment.yaml — Render imagePullSecrets at pod spec level
  • Chart.yaml — Changelog entry
  • README.md — Documentation entry

Related

Mattias Persson and others added 2 commits June 8, 2026 14:01
Adds global.imagePullSecrets to the solr-operator deployment pod spec.
The existing image.imagePullSecret was rendered inside containers[],
which is not a valid Kubernetes field and is silently ignored.

This places imagePullSecrets at the correct pod spec level and supports
both Kubernetes-native format ([{name: "secret"}]) and plain strings.

Closes apache#338
@HoustonPutman HoustonPutman changed the title Support global.imagePullSecrets in solr-operator helm chart (#338) Support global.imagePullSecrets in solr-operator helm chart Jun 18, 2026
@HoustonPutman

Copy link
Copy Markdown
Contributor

This is great, thanks for starting this off! I went ahead, and added the same for the Solr helm chart, and both merge the local and global imagePullSecret options, so that either can be used.

@HoustonPutman HoustonPutman changed the title Support global.imagePullSecrets in solr-operator helm chart Support global.imagePullSecrets in both helm charts Jun 18, 2026
@HoustonPutman HoustonPutman merged commit 73af13c into apache:main Jun 18, 2026
3 checks passed
@mattiasbpersson mattiasbpersson deleted the fix/global-imagePullSecrets branch June 18, 2026 20:32
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.

Use global.imagePullSecrets at solr-operator helm chart

2 participants