Closed CrazyByDefault closed 11 months ago
On attempting to use existingPrometheus set via a custom values.yaml, helm throws the following error during install -
Error: template: coroot/templates/deployment.yaml:38:134: executing "coroot/templates/deployment.yaml" at <.Values.prometheus.server.service.enabled>: nil pointer evaluating interface {}.enabled
The reference is being made from here - https://github.com/coroot/helm-charts/blob/8d87d73d4f2e5d708bed26187f112c66646e47d8/charts/coroot/templates/deployment.yaml#L38
However, even the default values.yaml does not contain a service section inside prometheus.server - https://github.com/coroot/helm-charts/blob/8d87d73d4f2e5d708bed26187f112c66646e47d8/charts/coroot/values.yaml#L74
service
Either a service block needs to be added, or the variable should not be checked during templating.
@CrazyByDefault, thank you for the report. Please update to the latest chart version.
On attempting to use existingPrometheus set via a custom values.yaml, helm throws the following error during install -
The reference is being made from here - https://github.com/coroot/helm-charts/blob/8d87d73d4f2e5d708bed26187f112c66646e47d8/charts/coroot/templates/deployment.yaml#L38
However, even the default values.yaml does not contain a
service
section inside prometheus.server - https://github.com/coroot/helm-charts/blob/8d87d73d4f2e5d708bed26187f112c66646e47d8/charts/coroot/values.yaml#L74Either a service block needs to be added, or the variable should not be checked during templating.