Skip to content

[bitnami/superset] Fresh installation failed when using ingress.extraHosts #33031

Open
@moonlight8978

Description

@moonlight8978

Name and Version

bitnami/superset 2.0.0

What architecture are you using?

None

What steps will reproduce the bug?

  1. I'm trying to deploy superset chart into a k3s cluster
  2. The config I used was
    helmfile.yaml
repositories:
  - name: bitnami
    url: https://charts.bitnami.com/bitnami
releases:
  - name: superset
    namespace: superset
    chart: bitnami/superset
    version: 2.0.0
    values:
      - superset/values.yaml
  1. Deploy above chart with
helmfile apply
  1. The following error has been thrown
Error: template: superset/templates/ingress.yaml:45:96: executing "superset/templates/ingress.yaml" at <include "common.names.fullname" .>: error calling include: template: superset/charts/common/templates/_names.tpl:27:14: executing "common.names.fullname" at <.Values.fullnameOverride>: nil pointer evaluating interface {}.fullnameOverride

Are you using any custom parameters or values?

ingress:
  enabled: true
  pathType: Prefix
  hostname: 192.168.1.15.sslip.io
  ingressClassName: traefik
  annotations:
    traefik.ingress.kubernetes.io/router.middlewares: default-traefik-config-auth@kubernetescrd
  extraHosts:
    - name: 192.168.1.16.sslip.io
      path: /

# ... postgresql, and redis config

What is the expected behavior?

the app is deployed successfully

What do you see instead?

Error: template: superset/templates/ingress.yaml:45:96: executing "superset/templates/ingress.yaml" at <include "common.names.fullname" .>: error calling include: template: superset/charts/common/templates/_names.tpl:27:14: executing "common.names.fullname" at <.Values.fullnameOverride>: nil pointer evaluating interface {}.fullnameOverride

Additional information

The chart is deployed successfully without ingress.extraHosts

The possible cause:
The different value of . between backend used for .Values.ingress.hostname (was the context)

backend: {{- include "common.ingress.backend" (dict "serviceName" (printf "%s-web" (include "common.names.fullname" .)) "servicePort" "http" "context" $) | nindent 14 }}

and backend used for .Values.ingress.extraHosts (was the host object iterator)

backend: {{- include "common.ingress.backend" (dict "serviceName" (printf "%s-web" (include "common.names.fullname" .)) "servicePort" "http" "context" $) | nindent 14 }}

Metadata

Metadata

Assignees

Labels

supersettech-issuesThe user has a technical issue about an applicationtriageTriage is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions