-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Describe the bug a clear and concise description of what the bug is.
[Disclaimer: I may have filed this under the wrong repo initially: https://github.com/prometheus-operator/kube-prometheus/issues/2719]
This should be incredibly easy, but it's not.
I have an existing chart, call it my-chart. I update my-chart with the following command:
helm upgrade --install \
--create-namespace -n some-namespace \
--reuse-values \
my-chart /path/to/my/chart
I want to add kube-prometheus-stack as a dep of my-chart. So I add the following to my Chart.yaml:
- name: kube-prometheus-stack
version: 76.5.1
repository: https://prometheus-community.github.io/helm-charts
condition: kube-prometheus-stack.enabled
And the following to my values.yaml:
kube-prometheus-stack:
enabled: true
I then run my helm dep update and my script, and get a sea of various no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" type errors.
I tried all the following values additions, with no luck:
kube-prometheus-stack:
enabled: true
crds:
enabled: true
upgradeJob:
enabled: true
I understand kube is dumb about CRDs but I feel like all the CRD subchart and upgrade hook stuff made it dumber here. How do I install this without babysitting some outdated CRD definitions myself just to kick it on?
Helm is v3.18.4:
$ helm version
version.BuildInfo{Version:"v3.18.4", GitCommit:"v3.18.4", GitTreeState:"", GoVersion:"go1.24.5"}This should live somewhere in the docs. There's a brief mention of CRD common issues in a very old version of the chart, but the latest docs make no mention of it:
https://artifacthub.io/packages/helm/prometheus-community/kube-prometheus-stack/10.0.1
https://artifacthub.io/packages/helm/prometheus-community/kube-prometheus-stack
What's your helm version?
version.BuildInfo{Version:"v3.18.4", GitCommit:"v3.18.4", GitTreeState:"", GoVersion:"go1.24.5"}
What's your kubectl version?
Client Version: v1.33.3 Kustomize Version: v5.6.0 Server Version: v1.33.2-gke.1240000
Which chart?
kube-prometheus-stack
What's the chart version?
76.5.1
What happened?
I get a sea of various no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" type errors on first upgrade with kube-prometheus-stack as a dep.
What you expected to happen?
I get a shiny new prom stack.
How to reproduce it?
I have an existing release in kube. I add the following to my Chart.yaml:
- name: kube-prometheus-stack
version: 76.5.1
repository: https://prometheus-community.github.io/helm-charts
condition: kube-prometheus-stack.enabled
And the following to my values.yaml:
kube-prometheus-stack:
enabled: true
I then run my helm dep update and my upgrade.
Enter the changed values of values.yaml?
NONE
Enter the command that you execute and failing/misfunctioning.
helm upgrade --install
--create-namespace -n some-namespace
--reuse-values
my-chart /path/to/my/chart
Anything else we need to know?
No response