Skip to content

[kube-prometheus-stack] Helm upgrade always creates a new revision, even if nothing changed #5236

@cowwoc

Description

@cowwoc

Describe the bug a clear and concise description of what the bug is.

helm upgrade is not supposed to do anything if the chart and input values do not change, but when I run helm upgrade on this chart it always increases the revision number and creates new resources. Other charts seem to work fine.

What's your helm version?

version.BuildInfo{Version:"v3.17.0", GitCommit:"301108edc7ac2a8ba79e4ebf5701b0b6ce6a31e4", GitTreeState:"clean", GoVersion:"go1.23.4"}

What's your kubectl version?

Client Version: v1.30.5 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.31.4+k3s1

Which chart?

kube-prometheus-stack

What's the chart version?

68.3.0

What happened?

If I run helm upgrade prometheus prometheus/kube-prometheus-stack --namespace database-monitor --create-namespace --install

multiple times, a new revision of the chart is installed each time and a new sh.helm.release.v1.prometheus.* secret is installed (e.g. sh.helm.release.v1.prometheus.v1, sh.helm.release.v1.prometheus.v2 and so on).

What you expected to happen?

If the chart and input values did not change, the chart revision should not increase and no new secrets should be installed.

How to reproduce it?

Run helm upgrade prometheus prometheus/kube-prometheus-stack --namespace database-monitor --create-namespace --install multiple times

Enter the changed values of values.yaml?

NONE

Enter the command that you execute and failing/misfunctioning.

helm upgrade prometheus prometheus/kube-prometheus-stack --namespace database-monitor --create-namespace --install

Anything else we need to know?

Here is the output of running the aforementioned command with --debug added: out.log

It looks like the prometheus-kube-prometheus-admission service account is always being recreated needlessly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions