Helm install error with grafana/loki chart deployed
- Dominant language
- Go
- Stars
- 11.7k
- Forks
- 802
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 80
Description
#### Describe the bug
We have in our k8s cluster a loki helm 5.31 version, and we received an error when we try to install the helm chart of pyroscope (any version after 1.0.0)
The error:
`The CustomResourceDefinition "podlogs.monitoring.grafana.com" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions`
I disabled the grafana agent of chart of pyroscope -> [https://github.com/grafana/pyroscope/blob/main/operations/pyroscope/helm/pyroscope/values.yaml#L173C1-L174C16](https://github.com/grafana/pyroscope/blob/main/operations/pyroscope/helm/pyroscope/values.yaml#L173C1-L174C16) and the error disappear. I see that the version of CRD inside here: [https://github.com/grafana/pyroscope/blob/main/operations/pyroscope/helm/pyroscope/charts/grafana-agent-0.25.0.tgz](https://github.com/grafana/pyroscope/blob/main/operations/pyroscope/helm/pyroscope/charts/grafana-agent-0.25.0.tgz) is v1alpha2 and in loki chart is v1alpha1 [https://github.com/grafana/loki/blob/helm-loki-5.31.0/production/helm/loki/templates/monitoring/grafana-agent.yaml#L3](https://github.com/grafana/loki/blob/helm-loki-5.31.0/production/helm/loki/templates/monitoring/grafana-agent.yaml#L3)
Why use a different version in the same CRD? any other solution?
#### To Reproduce
Steps to reproduce the behavior:
1. install helm chart of loki (some of the last versions)
2. install helm chart of pyroscope (some of the last versions)
#### Expected behavior
pyroscope install works with grafana agent tool ;)
#### Environment
- Infrastructure: 1.27 k8s cluster with loki helm chart deployed
- Deployment tool: helm
#### Additional Context
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.