Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ansible/inventory/group_vars/all/gateway-api
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 13 additions & 0 deletions ansible/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down