Helm: nil pointer evaluating interface {}.serviceName

Hi there! So I’m trying to deploy Flipt to our kubernetes cluster with Argo. I’ve created a helm chart in our repo and created a new app in Argo. However, I’m getting this error:

Unable to create application: 
  application spec for flipt is invalid: 
    InvalidSpecError: 
      Unable to generate manifests in flipt: 
        rpc error: 
          code = Unknown desc = `helm template . --name-template flipt --namespace coana-api --kube-version 1.29 --values <path to cached source>/flipt/values.yaml <api versions removed> --include-crds` failed exit status 1: 
            Error: 
              template: 
                flipt/charts/flipt/templates/ingress.yaml:52:51: 
                  executing "flipt/charts/flipt/templates/ingress.yaml" at <.backend.serviceName>: nil pointer evaluating interface {}.serviceName Use --debug flag to render out invalid YAML

As far as I can tell it’s not our values.yaml that’s the reason, but I could be mistaken. This is it:
(we’ve created a new chart with Flipt as a dependency, hence the extra level of indentation)

flipt:
  nodeSelector:
    "kubernetes.azure.com/agentpool": gpurhcpu

  ingress:
    enabled: true
    annotations:
      cert-manager.io/cluster-issuer: "letsencrypt-prod"
    className: nginx
    hosts:
      - host: flipt.coana.tech
        paths:
          - path: /
            pathType: Prefix
    tls:
      - hosts:
          - flipt.coana.tech
        secretName: flipt-prod-tls

  flipt:
    config:
      log:
        level: WARN
      cache:
        enabled: true
        backend: memory

I’ve tried with fullnameOverride too, but it didn’t help.

Hey @jeppe

can you try these values?

flipt:
  ingress:
    enabled: true
    annotations:
      cert-manager.io/cluster-issuer: "letsencrypt-prod"
    className: nginx
    hosts:
      - host: flipt.coana.tech
        paths:
          - path: /
            pathType: Prefix
            backend:
              servicePort: http  # This was missing
              serviceName: ""    # This was missing

    tls:
      - hosts:
          - flipt.coana.tech
        secretName: flipt-prod-tls

  flipt:
    config:
      log:
        level: WARN
      cache:
        enabled: true
        backend: memory

I think the issue was that backend was nil