Update ingress api version to v1 (#15273)

extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+;
networking.k8s.io/v1 Ingress should be used
diff --git a/helm/superset/Chart.yaml b/helm/superset/Chart.yaml
index d51c9b5..dad44a8 100644
--- a/helm/superset/Chart.yaml
+++ b/helm/superset/Chart.yaml
@@ -22,7 +22,7 @@
   - name: craig-rueda
     email: craig@craigrueda.com
     url: https://github.com/craig-rueda
-version: 0.3.1
+version: 0.3.2
 dependencies:
 - name: postgresql
   version: 10.2.0
diff --git a/helm/superset/templates/ingress.yaml b/helm/superset/templates/ingress.yaml
index b0888e4..a13767f 100644
--- a/helm/superset/templates/ingress.yaml
+++ b/helm/superset/templates/ingress.yaml
@@ -17,7 +17,7 @@
 {{ if .Values.ingress.enabled -}}
 {{- $fullName := include "superset.fullname" . -}}
 {{- $ingressPath := .Values.ingress.path -}}
-apiVersion: extensions/v1beta1
+apiVersion: networking.k8s.io/v1
 kind: Ingress
 metadata:
   name: {{ $fullName }}
@@ -46,9 +46,12 @@
     - host: {{ . }}
       http:
         paths:
-          - path: {{ $ingressPath }}
+          - path: {{ .Values.ingress.path }}
+            pathType: {{ .Values.ingress.pathType }}
             backend:
-              serviceName: {{ $fullName }}
-              servicePort: http
+              service:
+                name: {{ $fullName }}
+                port:
+                  name: http
   {{- end }}
 {{- end }}
diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml
index fd859fe..884ad6c 100644
--- a/helm/superset/values.yaml
+++ b/helm/superset/values.yaml
@@ -147,6 +147,7 @@
     # nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
     # nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
   path: /
+  pathType: ImplementationSpecific
   hosts:
     - chart-example.local
   tls: []