solo-io / gloo

The Feature-rich, Kubernetes-native, Next-Generation API Gateway Built on Envoy
https://docs.solo.io/
Apache License 2.0
4.07k stars 437 forks source link

gloo helm chart install <.Values.gloo.serviceAccount.extraAnnotations>: nil pointer evaluating interface {}.extraAnnotations #8029

Open 90pizza opened 1 year ago

90pizza commented 1 year ago

Gloo Edge Version

1.13.x (latest stable)

Kubernetes Version

1.21.x

Describe the bug

I tried to install gloo edge using helm chart in an offline environment, but the following issues occurred.

The gloo helm chart version is v1.13.11.

Please help.

In addition, values.yaml was modified slightly as a setting for installing Knative through values-template.yaml, but I have no idea what <.Values.gloo.serviceAccount.extraAnnotations> means in the Debug Error.

ㅡㅡㅡ Error: INSTALLATION FAILED: template: gloo/templates/2-gloo-service-account.yaml:28:4: executing "gloo/templates/2-gloo-service-account.yaml" at <include "gloo.util.merge" (list . $kubeResourceOverride "gloo.serviceAccountSpec")>: error calling include: template: gloo/templates/_helpers.tpl:133:22: executing "gloo.util.merge" at <include (index . 2) $top>: error calling include: template: gloo/templates/2-gloo-service-account.yaml:5:14: executing "gloo.serviceAccountSpec" at <.Values.gloo.serviceAccount.extraAnnotations>: nil pointer evaluating interface {}.extraAnnotations helm.go:84: [debug] template: gloo/templates/2-gloo-service-account.yaml:28:4: executing "gloo/templates/2-gloo-service-account.yaml" at <include "gloo.util.merge" (list . $kubeResourceOverride "gloo.serviceAccountSpec")>: error calling include: template: gloo/templates/_helpers.tpl:133:22: executing "gloo.util.merge" at <include (index . 2) $top>: error calling include: template: gloo/templates/2-gloo-service-account.yaml:5:14: executing "gloo.serviceAccountSpec" at <.Values.gloo.serviceAccount.extraAnnotations>: nil pointer evaluating interface {}.extraAnnotations INSTALLATION FAILED main.newInstallCmd.func2

Steps to reproduce the bug

  1. pre setup
    • kubernetes v1.21.14
    • helm chart values.yaml knative v0.22.1 setup

Expected Behavior

1.13.11 If you set the values.yaml of the helm chart to Knative v0.22.1 and proceed with the installation, you want the template to be installed without problems immediately after installing the CRD.

Additional Context

help please

github-actions[bot] commented 3 months ago

This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs.