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

Helm fails to render pixie-operator-chart templates #421

Closed
sturman opened this issue Apr 19, 2022 · 0 comments
Closed

Helm fails to render pixie-operator-chart templates #421

sturman opened this issue Apr 19, 2022 · 0 comments
Assignees

Comments

@sturman
Copy link

sturman commented Apr 19, 2022

Describe the bug
Helm fails to render templates for 'pixie-operator/pixie-operator-chart' chart.

Error: template: pixie-operator-chart/templates/00_olm.yaml:1:113: executing "pixie-operator-chart/templates/00_olm.yaml" at <len (lookup "operators.coreos.com/v1" "OperatorGroup" "" "").items>: error calling len: len of nil pointer

Use --debug flag to render out invalid YAML

To Reproduce
Steps to reproduce the behavior:

  1. Runhelm repo add pixie-operator https://pixie-operator-charts.storage.googleapis.com
  2. Run helm template pixie-operator pixie-operator/pixie-operator-chart

Expected behavior
Templates (Namespace, ClusterRole, ClusterRoleBinding, Deployment etc) should be rendered

App information (please complete the following information):

  • Helm version: version.BuildInfo{Version:"v3.8.2", GitCommit:"6e3701edea09e5d55a8ca2aae03a68917630e91b", GitTreeState:"clean", GoVersion:"go1.17.5"}
  • Helm chart: pixie-operator-chart
  • Helm chart version: 0.0.24
  • K8s cluster version: 1.21
  • ArgoCD: 2.3.3

Additional context
After commit 8dec8ee is pushed and released, the helm function lookup is invoked in order to check if k8s cluster has "operators.coreos.com/v1" "OperatorGroup" resources. When running helm template the lookup is not supported.

Keep in mind that Helm is not supposed to contact the Kubernetes API Server during a helm template or a helm install|update|delete|rollback --dry-run, so the lookup function will return an empty list (i.e. dict) in such a case.

When trying to install pixie-operator-chart with ArgoCD it fails because ArgoCD executes helm template before installing the chart.

The ArgoCD issue that could be related to this argoproj/argo-cd#5202

Anyway, the helm fails to template the chart pixie-operator-chart locally.

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