helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Fix servicemonitor http endpoint

Open FranckKe opened this issue 1 year ago • 2 comments

Fix issue with servicemonitor trying to read .Values within a loop

Reproduction before fix

❯ helm template --set extraServiceMonitor.enabled=true ./
Error: template: keycloakx/templates/servicemonitor.yaml:37:24: executing "keycloakx/templates/servicemonitor.yaml" at <.Values.http.internalScheme>: nil pointer evaluating interface {}.http

FranckKe avatar Aug 26 '24 17:08 FranckKe

We stumbled over the same issue. Can the PR be merged and released soon? Thanks

joggeli34 avatar Aug 28 '24 09:08 joggeli34

We encountered this problem too. I also found this to be the cause and I'm happy to see an open PR

keycloak   103s   False   Helm install failed for release keycloak/keycloak with chart [email protected]: template: keycloakx/templates/servicemonitor.yaml:37:24: executing "keycloakx/templates/servicemonitor.yaml" at <.Values.http.internalScheme>: nil pointer evaluating interface {}.http

gerruite avatar Aug 28 '24 12:08 gerruite

Workaround while waiting for this PR to be merged

In your helm chart,

serviceMonitor:
  Values:
    http:
      internalScheme: http

ethan-k avatar Aug 30 '24 10:08 ethan-k