Skip to content

Commit 1d999bd

Browse files
authored
chore(charts): use new k8s apiVersion
1 parent f759456 commit 1d999bd

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

charts/passport/templates/passport-ingress.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if eq .Values.global.passport_location "on-cluster" }}
2-
apiVersion: networking.k8s.io/v1beta1
2+
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
55
name: "passport-api-server"
@@ -18,14 +18,17 @@ spec:
1818
- host: drycc-passport.{{ .Values.global.platform_domain }}
1919
http:
2020
paths:
21-
{{- if eq .Values.global.ingress_class "gce" "alb" }}
22-
- path: /*
23-
{{- else }}{{/* Has annotations but ingress class is not "gce" nor "alb" */}}
24-
- path: /
25-
{{- end }}
21+
- pathType: Prefix
22+
{{- if eq .Values.global.ingress_class "gce" "alb" }}
23+
path: /*
24+
{{- else }}{{/* Has annotations but ingress class is not "gce" nor "alb" */}}
25+
path: /
26+
{{- end }}
2627
backend:
27-
serviceName: drycc-passport
28-
servicePort: 80
28+
service:
29+
name: drycc-passport
30+
port:
31+
number: 80
2932
{{ if .Values.global.cert_passport_enabled }}
3033
tls:
3134
- secretName: drycc-passport-certificate-auto

0 commit comments

Comments
 (0)