Skip to content

[kube-prometheus-stack] avoid duplicate Thanos image key#6901

Merged
jkroepke merged 2 commits into
prometheus-community:mainfrom
Zakharden:fix/kps-thanos-image-duplicate-key
May 11, 2026
Merged

[kube-prometheus-stack] avoid duplicate Thanos image key#6901
jkroepke merged 2 commits into
prometheus-community:mainfrom
Zakharden:fix/kps-thanos-image-duplicate-key

Conversation

@Zakharden

Copy link
Copy Markdown
Contributor

Fixes #6886.

What this PR does

This avoids rendering prometheus.prometheusSpec.thanos.image twice in the generated Prometheus custom resource.

The template already renders thanos.image explicitly. The generic Thanos toYaml block now omits image, the same way it already omits objectStorageConfig and secretProviderClass.

Validation

  • Reproduced the duplicate thanos.image key with helm template
  • Verified the rendered Prometheus CR contains a single thanos.image
  • Verified objectStorageConfig.existingSecret still renders under thanos
  • helm lint charts/kube-prometheus-stack --kube-version 1.35.4 --set prometheus.prometheusSpec.thanos.image=quay.io/thanos/thanos:v0.41.0 --set grafana.enabled=false --set kubeStateMetrics.enabled=false --set nodeExporter.enabled=false --set windowsMonitoring.enabled=false
  • git diff --check HEAD~1 HEAD

@jkroepke

Copy link
Copy Markdown
Member

please increase the chart version

@Zakharden

Copy link
Copy Markdown
Contributor Author

Bumped the kube-prometheus-stack chart version in 238a610

Zakharden added 2 commits May 11, 2026 10:49
Signed-off-by: Zakhar Dvurechensky <72825626+Zakharden@users.noreply.github.com>
Signed-off-by: Zakhar Dvurechensky <72825626+Zakharden@users.noreply.github.com>
@Zakharden Zakharden force-pushed the fix/kps-thanos-image-duplicate-key branch from 238a610 to 2a70df1 Compare May 11, 2026 07:50
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.

[kube-prometheus-stack] Thanos Image duplicate key

2 participants