File tree Expand file tree Collapse file tree 5 files changed +22
-26
lines changed
manifests/bucketeer/charts/web Expand file tree Collapse file tree 5 files changed +22
-26
lines changed Original file line number Diff line number Diff line change 1- {{- if .Values.ingress .enabled }}
1+ {{- if not .Values.gcpMultiCluster .enabled }}
22apiVersion : networking.k8s.io/v1
33kind : Ingress
44metadata :
Original file line number Diff line number Diff line change 1- {{- if and .Values.multiClusterIngress .enabled .Values.env.gcpEnabled }}
1+ {{- if .Values.gcpMultiCluster .enabled }}
22apiVersion : networking.gke.io/v1
33kind : MultiClusterIngress
44metadata :
5- name : {{ .Values.multiClusterIngress .name }}
5+ name : {{ .Values.gcpMultiCluster.ingress .name }}
66 namespace : {{ .Values.namespace }}
77 labels :
88 app : {{ template "web.name" . }}
99 chart : {{ template "web.chart" . }}
1010 release : {{ template "web.fullname" . }}
1111 heritage : {{ .Release.Service }}
1212 annotations :
13- networking.gke.io/static-ip : {{ .Values.multiClusterIngress .staticIPName }}
13+ networking.gke.io/static-ip : {{ .Values.gcpMultiCluster.ingress .staticIPName }}
1414spec :
1515 template :
1616 spec :
1717 backend :
1818 serviceName : {{ template "web.fullname" . }}
1919 servicePort : {{ .Values.service.httpPort }}
2020 rules :
21- - host : {{ .Values.multiClusterIngress .host }}
21+ - host : {{ .Values.gcpMultiCluster.ingress .host }}
2222 http :
23- paths : {{- toYaml .Values.multiClusterIngress .rulePaths | nindent 14 }}
23+ paths : {{- toYaml .Values.gcpMultiCluster.ingress .rulePaths | nindent 14 }}
2424{{- end }}
Original file line number Diff line number Diff line change 1- {{- if and .Values.multiClusterService .enabled .Values.env.gcpEnabled }}
1+ {{- if .Values.gcpMultiCluster .enabled }}
22apiVersion : networking.gke.io/v1
33kind : MultiClusterService
44metadata :
5- name : {{ .Values.multiClusterService .name }}
5+ name : {{ .Values.gcpMultiCluster.service .name }}
66 namespace : {{ .Values.namespace }}
77 labels :
88 app : {{ template "web.name" . }}
Original file line number Diff line number Diff line change 1- {{- if .Values.service .enabled }}
1+ {{- if not .Values.gcpMultiCluster .enabled }}
22apiVersion : v1
33kind : Service
44metadata :
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ envoy:
118118 adminPort : 8001
119119 resources : {}
120120service :
121- enabled : true
122121 type : NodePort
123122 grpcPort : 9000
124123 httpPort : 9003
@@ -135,7 +134,6 @@ resources: {}
135134serviceAccount :
136135 annotations : {}
137136ingress :
138- enabled : true
139137 name : web
140138 host :
141139 staticIPName :
@@ -147,19 +145,17 @@ ingress:
147145 port :
148146 number : 9003
149147
150- multiClusterService :
148+ gcpMultiCluster :
151149 enabled : false
152- name : web-multi-cluster-service
153-
154-
155- multiClusterIngress :
156- enabled : false
157- name : web-multi-cluster-ingress
158- host : web-gateway.bucketeer.io
159- staticIPName : web-multi-cluster-static-ip
160- rulePaths :
161- - path : /
162- pathType : Prefix
163- backend :
164- serviceName : web
165- servicePort : 9003
150+ service :
151+ name : web-multi-cluster-service
152+ ingress :
153+ name : web-multi-cluster-ingress
154+ host : web-gateway.bucketeer.io
155+ staticIPName : web-multi-cluster-static-ip
156+ rulePaths :
157+ - path : /
158+ pathType : Prefix
159+ backend :
160+ serviceName : web
161+ servicePort : 9003
You can’t perform that action at this time.
0 commit comments