From 6daff6d3235d04031f099001f01a7a9643d7f4ee Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 28 May 2025 15:56:16 +0200 Subject: [PATCH] Add GatewayClass --- ansible/inventory/group_vars/all/gateway-api | 4 ++++ ansible/run.yml | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ansible/inventory/group_vars/all/gateway-api b/ansible/inventory/group_vars/all/gateway-api index 118b688..a82ed14 100644 --- a/ansible/inventory/group_vars/all/gateway-api +++ b/ansible/inventory/group_vars/all/gateway-api @@ -1,6 +1,10 @@ --- zuul_operator_gateway_api_crd_url: "https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.3.0/standard-install.yaml" zuul_operator_contour_crd_url: "https://projectcontour.io/quickstart/contour.yaml" +zuul_operator_gateway_api_gatewayclasses: + - name: contour + spec: + controllerName: projectcontour.io/gateway-controller zuul_operator_gateway_api_gateways: - name: zuul-web-gateway spec: diff --git a/ansible/run.yml b/ansible/run.yml index 0fb9344..b2d56d2 100644 --- a/ansible/run.yml +++ b/ansible/run.yml @@ -76,6 +76,19 @@ when: zuul_operator_gateway_api_crd_url | length > 0 tags: gateway-api + - name: Ensure Gateway API GatewayClasses + kubernetes.core.k8s: + definition: + apiVersion: gateway.networking.k8s.io/v1 + kind: GatewayClass + metadata: + name: "{{ item.name }}" + spec: "{{ item.spec }}" + loop: "{{ zuul_operator_gateway_api_gatewayclasses }}" + loop_control: + label: "{{ item.name }}" + tags: gateway-api + - name: Ensure Gateway API Gateways kubernetes.core.k8s: definition: