nicholaswilde / helm-charts

My collection of Helm charts.
https://artifacthub.io/packages/search?repo=nicholaswilde
Apache License 2.0
70 stars 32 forks source link

fix common ingress template #59

Open sillydong opened 2 years ago

sillydong commented 2 years ago
ingress:
  enabled: true
  annotations: {
    kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  }
  hosts:
    - host: testhost
      paths:
      - path: /
        pathType: Prefix
        backend:
          serviceName: service-a
          servicePort: 80
      - path: /api
        pathType: Prefix
        backend:
          serviceName: service-b
          servicePort: 80

For ingress configuration like the upper code, we need to parse each path and set up their backend serviceName and servicePort. We can not use app name as serviceName and app service port as servicePort.

sillydong commented 2 years ago

Hi @nicholaswilde, is there anything I can do? Do i need to modify anything in this PR?