-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kube-prometheus-stack] Conflicting secret name #4033
Comments
I've the exact same problem. Not a permanent solution but I edited the secret manually with: annotations: I've also changed: labels: to: labels: And upgrade worked without any issues after that. |
Seems to be caused by #3918 (version 52). The secret is always created
even if helm-charts/charts/kube-prometheus-stack/templates/thanos-ruler/ruler.yaml Lines 78 to 82 in f61d899
Note, that an empty secret will be created if
|
i am facing the same problem is there a solution instead editing the existing secret manual ? |
We solved it by not setting |
Describe the bug a clear and concise description of what the bug is.
Tried to do an update via
helm upgrade
, but got the error:rendered manifests contain a resource that already exists. Unable to continue with update: Secret "prometheus-prometheus" in namespace "prometheus" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "ri-prometheus-operator"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "prometheus"
It seems to be caused by this file: https://github.com/prometheus-community/helm-charts/blob/kube-prometheus-stack-54.1.0/charts/kube-prometheus-stack/templates/prometheus/secret.yaml
Having conflicts with a file that the Prometheus Operator generates here: https://github.com/prometheus-operator/prometheus-operator/blob/v0.69.1/pkg/prometheus/statefulset.go#L122-L148
What's your helm version?
version.BuildInfo{Version:"v3.13.2", GitCommit:"v3.13.2", GitTreeState:"", GoVersion:"go1.21.3"}
What's your kubectl version?
Client Version: v1.28.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.27.8
Which chart?
kube-prometheus-stack
What's the chart version?
54.1.0
What happened?
The secret from this chart is for Thanos stuff, and I don't even use Thanos. The secret that's blocking my upgrades is an empty secret.
What you expected to happen?
The secret deployed by this chart does not have a conflicting name.
How to reproduce it?
No response
Enter the changed values of values.yaml?
Enter the command that you execute and failing/misfunctioning.
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: