Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keycloakx 2.5.0: nil pointer when serviceMonitor or extraServiceMonitor are enabled #792

Open
acceptMyPR opened this issue Sep 6, 2024 · 1 comment

Comments

@acceptMyPR
Copy link

acceptMyPR commented Sep 6, 2024

Hello

❯ helm version
version.BuildInfo{Version:"v3.15.3", GitCommit:"3bb50bbbdd9c946ba9989fbe4fb4104766302a64", GitTreeState:"clean", GoVersion:"go1.22.5"}

helm v3.15.3
Chart version 2.5.0

When serviceMonitor or extraServiceMonitor are enabled, where are an error during templating manifests:

❯ helm template codecentric/keycloakx --version=2.5.0 --set serviceMonitor.enabled=true --debug
install.go:222: [debug] Original chart version: "2.5.0"
install.go:239: [debug] CHART PATH: /Users/user/Library/Caches/helm/repository/keycloakx-2.5.0.tgz


Error: template: keycloakx/templates/servicemonitor.yaml:37:24: executing "keycloakx/templates/servicemonitor.yaml" at <.Values.http.internalScheme>: nil pointer evaluating interface {}.http
helm.go:84: [debug] template: keycloakx/templates/servicemonitor.yaml:37:24: executing "keycloakx/templates/servicemonitor.yaml" at <.Values.http.internalScheme>: nil pointer evaluating interface {}.http
❯ 
❯ 
❯ helm template codecentric/keycloakx --version=2.5.0 --set extraServiceMonitor.enabled=true --debug
install.go:222: [debug] Original chart version: "2.5.0"
install.go:239: [debug] CHART PATH: /Users/user/Library/Caches/helm/repository/keycloakx-2.5.0.tgz


Error: template: keycloakx/templates/servicemonitor.yaml:37:24: executing "keycloakx/templates/servicemonitor.yaml" at <.Values.http.internalScheme>: nil pointer evaluating interface {}.http
helm.go:84: [debug] template: keycloakx/templates/servicemonitor.yaml:37:24: executing "keycloakx/templates/servicemonitor.yaml" at <.Values.http.internalScheme>: nil pointer evaluating interface {}.http

2.4.4 is ok:

❯ helm template codecentric/keycloakx --version=2.4.4 --set serviceMonitor.enabled=true --debug | head
install.go:222: [debug] Original chart version: "2.4.4"
install.go:239: [debug] CHART PATH: /Users/user/Library/Caches/helm/repository/keycloakx-2.4.4.tgz

---
# Source: keycloakx/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: release-name-keycloakx
  namespace: default
  labels:
    helm.sh/chart: keycloakx-2.4.4
    app.kubernetes.io/name: keycloakx

this line crashing helm template

scheme: {{ .Values.http.internalScheme | lower }}

@FranckKe
Copy link
Contributor

FranckKe commented Sep 6, 2024

#791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants