Skip to content

Commit cf78334

Browse files
committed
Add GatewayClass
1 parent 5fe540a commit cf78334

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

ansible/inventory/group_vars/all/gateway-api

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
zuul_operator_gateway_api_crd_url: "https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.3.0/standard-install.yaml"
33
zuul_operator_contour_crd_url: "https://projectcontour.io/quickstart/contour.yaml"
4+
zuul_operator_gateway_api_gatewayclasses:
5+
- name: contour
6+
spec:
7+
controllerName: projectcontour.io/gateway-controller
48
zuul_operator_gateway_api_gateways:
59
- name: zuul-web-gateway
610
spec:

ansible/run.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@
7676
when: zuul_operator_gateway_api_crd_url | length > 0
7777
tags: gateway-api
7878

79+
- name: Ensure Gateway API GatewayClasses
80+
kubernetes.core.k8s:
81+
definition:
82+
apiVersion: gateway.networking.k8s.io/v1
83+
metadata:
84+
name: "{{ item.name }}"
85+
spec: "{{ item.spec }}"
86+
loop: "{{ zuul_operator_gateway_api_gatewayclasses }}"
87+
loop_control:
88+
label: "{{ item.name }}"
89+
tags: gateway-api
90+
7991
- name: Ensure Gateway API Gateways
8092
kubernetes.core.k8s:
8193
definition:

0 commit comments

Comments
 (0)