Skip to content

Commit cc3fbe9

Browse files
committed
fix(gateway): update overlays to patch ListenerSet hostnames
This updates the sandbox and production overlays to correctly patch the hostnames on both the ListenerSet and the HTTPRoute.
1 parent 4cbb380 commit cc3fbe9

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

deploy/manifests/balancer/overlays/production/kustomization.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,19 @@ images:
1212

1313
patches:
1414
- target:
15-
kind: HTTPRoute
16-
name: balancer
15+
kind: ListenerSet
16+
name: balancer-listeners
1717
patch: |-
1818
- op: replace
19-
path: /spec/hostnames/0
19+
path: /spec/listeners/0/hostname
20+
value: balancerproject.org
21+
- op: replace
22+
path: /spec/listeners/1/hostname
2023
value: balancerproject.org
24+
- target:
25+
kind: HTTPRoute
26+
name: balancer
27+
patch: |-
28+
- op: add
29+
path: /spec/hostnames
30+
value: ["balancerproject.org"]

deploy/manifests/balancer/overlays/sandbox/kustomization.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,19 @@ images:
1212

1313
patches:
1414
- target:
15-
kind: HTTPRoute
16-
name: balancer
15+
kind: ListenerSet
16+
name: balancer-listeners
1717
patch: |-
1818
- op: replace
19-
path: /spec/hostnames/0
19+
path: /spec/listeners/0/hostname
20+
value: sandbox.balancerproject.org
21+
- op: replace
22+
path: /spec/listeners/1/hostname
2023
value: sandbox.balancerproject.org
24+
- target:
25+
kind: HTTPRoute
26+
name: balancer
27+
patch: |-
28+
- op: add
29+
path: /spec/hostnames
30+
value: ["sandbox.balancerproject.org"]

0 commit comments

Comments
 (0)