Skip to content

Commit 7effb7a

Browse files
committed
feat(passport): use gateway replace ingress
1 parent d21c117 commit 7effb7a

3 files changed

Lines changed: 33 additions & 55 deletions

File tree

charts/passport/templates/passport-certificate.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

charts/passport/templates/passport-ingress.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{{- if eq .Values.global.passportLocation "on-cluster" }}
2+
apiVersion: gateway.networking.k8s.io/v1beta1
3+
kind: HTTPRoute
4+
metadata:
5+
name: passport-api-server
6+
labels:
7+
app: "passport"
8+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
9+
release: "{{ .Release.Name }}"
10+
heritage: "{{ .Release.Service }}"
11+
spec:
12+
hostnames:
13+
- drycc-passport.{{ .Values.global.platformDomain }}
14+
parentRefs:
15+
- group: gateway.networking.k8s.io
16+
kind: Gateway
17+
name: drycc-gateway
18+
sectionName: drycc-gateway-listener-http
19+
{{- if .Values.global.certManagerEnabled }}
20+
- group: gateway.networking.k8s.io
21+
kind: Gateway
22+
name: drycc-gateway
23+
sectionName: drycc-gateway-listener-https
24+
{{- end }}
25+
rules:
26+
- matches:
27+
- path:
28+
type: PathPrefix
29+
value: /
30+
backendRefs:
31+
- name: drycc-passport
32+
port: 80
33+
{{- end }}

0 commit comments

Comments
 (0)