Open jasperjonker opened 1 year ago
I'm not sure what helm test does (or where to read about it), but if you are disabling selfMonitoring, maybe you should also disable tests?
test:
enabled: false
We're hitting this as well - the 'solution' is to disabled 'test' as @AurimasNav says, but it feels a bit wrong.
If the test relies on:
selfMonitoring:
enabled: true
Then shouldn't that value being set to false also diable that specific test?
I'm not sure what helm test does (or where to read about it), but if you are disabling selfMonitoring, maybe you should also disable tests?
test: enabled: false
Disabling validation checks should not be the solution there. The Loki chart providers would need to make the self monitoring more configurable...
I mean why is the chart delivering Prometheus CRDs... srsly
Any update here?
I ran into this same issue with Loki Helm chart 5.5.2 (Loki version 2.8.2).
The CRD's from Loki helm chart are conflicting with the CRD's installed by kube-prometheus-stack, causing a race condition if they're both applied at the same time.
I've disabled the CRD's from Loki by setting monitoring.selfmonitoring.grafanaAgent.installOperator: false
but with selfMonitoring.enabled: true
(default) it fails to apply the chart because these CRD's are required:
monitoring.grafana.com/v1alpha1/PodLogs
monitoring.grafana.com/v1alpha1/GrafanaAgent
monitoring.grafana.com/v1alpha1/LogsInstance
Since Prometheus can monitor Loki, I figured it is safe to set selfMonitoring.enabled: false
, but now I receive the error that others have mentioned (loki/templates/validate.yaml:6:4): Helm test requires self monitoring to be enabled
. I get this error when using the most recent Loki chart version, 5.47.2
Edit: It looks like the only helm test implemented is based on the Loki canary which is part of the self-monitoring: https://github.com/grafana/loki/blob/main/production/helm/loki/templates/tests/test-canary.yaml
Describe the bug I cannot create a helm template with loki with version >
3.2.2
. As this is the way ArgoCD deploys applications, I cannot deply Loki with Chart version >3.2.2
using Helm E.g.:Chart.yaml
values.yaml
To Reproduce Steps to reproduce the behavior:
Chart.yaml
andvalues.yaml
in a folder.helm dependency build && helm template --debug . -f values.yaml > all.yaml && rm -rf Chart.lock charts
Chart.yaml
is >3.2.2
it will fail with:Error: template: loki/charts/loki/templates/validate.yaml:12:4: executing "loki/charts/loki/templates/validate.yaml" at <fail "Helm test requires self monitoring to be enabled">: error calling fail: Helm test requires self monitoring to be enabled helm.go:81: [debug] template: loki/charts/loki/templates/validate.yaml:12:4: executing "loki/charts/loki/templates/validate.yaml" at <fail "Helm test requires self monitoring to be enabled">: error calling fail: Helm test requires self monitoring to be enabled