From 7f98ae2015160a0b6e6f4f5da86cd38bda104d75 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 12 Aug 2024 01:23:31 -0500 Subject: [PATCH] fix: add missing magnum patch and route Signed-off-by: Kevin Carter --- etc/gateway-api/gateway-patches.json | 25 +++++++++++++++++++++++++ etc/gateway-api/gateway-routes.yaml | 17 +++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/etc/gateway-api/gateway-patches.json b/etc/gateway-api/gateway-patches.json index 95838a84..f31835f6 100644 --- a/etc/gateway-api/gateway-patches.json +++ b/etc/gateway-api/gateway-patches.json @@ -164,6 +164,31 @@ } } }, + { + "op": "add", + "path": "/spec/listeners/-", + "value": { + "name": "magnum-https", + "port": 443, + "protocol": "HTTPS", + "hostname": "magnum.your.domain.tld", + "allowedRoutes": { + "namespaces": { + "from": "All" + } + }, + "tls": { + "certificateRefs": [ + { + "group": "", + "kind": "Secret", + "name": "magnum-gw-tls-secret" + } + ], + "mode": "Terminate" + } + } + }, { "op": "add", "path": "/spec/listeners/-", diff --git a/etc/gateway-api/gateway-routes.yaml b/etc/gateway-api/gateway-routes.yaml index 8a30842d..60ac80df 100644 --- a/etc/gateway-api/gateway-routes.yaml +++ b/etc/gateway-api/gateway-routes.yaml @@ -142,6 +142,23 @@ spec: --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute +metadata: + name: custom-magnum-gateway-route + namespace: openstack +spec: + parentRefs: + - name: flex-gateway + sectionName: magnum-https + namespace: nginx-gateway + hostnames: + - "magnum.your.domain.tld" + rules: + - backendRefs: + - name: magnum-api + port: 9511 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute metadata: name: custom-neutron-gateway-route namespace: openstack