Skip to content
Snippets Groups Projects
Unverified Commit 8a961a60 authored by ChengHao Yang's avatar ChengHao Yang Committed by GitHub
Browse files

Feat: Gateway API CRDs install support (#11376)


* Feat: add Gateway API CRDs installation

Signed-off-by: default avatarChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Feat: add Gateway API CRDs variable in inventory

Signed-off-by: default avatarChengHao Yang <17496418+tico88612@users.noreply.github.com>

---------

Signed-off-by: default avatarChengHao Yang <17496418+tico88612@users.noreply.github.com>
parent db0138b2
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,10 @@ rbd_provisioner_enabled: false
# rbd_provisioner_storage_class: rbd
# rbd_provisioner_reclaim_policy: Delete
# Gateway API CRDs
gateway_api_enabled: false
# gateway_api_experimental_channel: false
# Nginx ingress controller deployment
ingress_nginx_enabled: false
# ingress_nginx_host_network: false
......
---
gateway_api_enabled: false
gateway_api_version: v1.1.0
gateway_api_experimental_channel: false
---
- name: Gateway API | Create addon dir
file:
path: "{{ kube_config_dir }}/addons/gateway_api"
state: directory
owner: root
group: root
mode: "0755"
when:
- inventory_hostname == groups['kube_control_plane'][0]
- name: Gateway API | Set channel
set_fact:
gateway_api_channel: "{{ 'experimental' if gateway_api_experimental_channel else 'standard' }}"
when:
- "inventory_hostname == groups['kube_control_plane'][0]"
- name: Gateway API | Copy Gateway API manifests to remote
template:
src: "{{ gateway_api_channel }}-install.yaml.j2"
dest: "{{ kube_config_dir }}/addons/gateway_api/{{ gateway_api_channel }}-install.yaml"
mode: "0644"
when:
- "inventory_hostname == groups['kube_control_plane'][0]"
- name: Gateway API | Install Gateway API
kube:
name: Gateway API
kubectl: "{{ bin_dir }}/kubectl"
filename: "{{ kube_config_dir }}/addons/gateway_api/{{ gateway_api_channel }}-install.yaml"
state: latest
when:
- "inventory_hostname == groups['kube_control_plane'][0]"
This diff is collapsed.
This diff is collapsed.
......@@ -111,6 +111,13 @@ dependencies:
tags:
- oci
- role: kubernetes-apps/gateway_api
when:
- gateway_api_enabled
- inventory_hostname == groups['kube_control_plane'][0]
tags:
- gateway_api
- role: kubernetes-apps/metallb
when:
- metallb_enabled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment