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
This commit is contained in:
Max Voitko
2021-07-01 14:06:22 +03:00
committed by GitHub
parent 285c1b5d22
commit a3a34773ae
3 changed files with 9 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ maintainers:
- 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

View File

@@ -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 @@ spec:
- 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 }}

View File

@@ -147,6 +147,7 @@ ingress:
# nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
# nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
path: /
pathType: ImplementationSpecific
hosts:
- chart-example.local
tls: []