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 · 2 comments
Labels

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

Copy link

github-actions bot commented Nov 6, 2024

This issue has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants