Skip to content

Commit

Permalink
Add Gateway API download information in kubespray-default
Browse files Browse the repository at this point in the history
Remove old variables in kubernetes-apps/gateway_api

Signed-off-by: ChengHao Yang <[email protected]>
  • Loading branch information
tico88612 committed Dec 2, 2024
1 parent 98807ff commit 07a1ab7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
4 changes: 0 additions & 4 deletions roles/kubernetes-apps/gateway_api/defaults/main.yml

This file was deleted.

17 changes: 17 additions & 0 deletions roles/kubespray-defaults/defaults/main/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ scheduler_plugins_version: "{{ scheduler_plugins_supported_versions[kube_major_v

yq_version: "v4.42.1"

gateway_api_version: "v1.2.1"
gateway_api_experimental_channel: false
gateway_api_channel: "{{ 'experimental' if gateway_api_experimental_channel else 'standard' }}"

github_url: https://github.com
dl_k8s_io_url: https://dl.k8s.io
storage_googleapis_url: https://storage.googleapis.com
Expand Down Expand Up @@ -193,6 +197,7 @@ containerd_download_url: "{{ github_url }}/containerd/containerd/releases/downlo
cri_dockerd_download_url: "{{ github_url }}/Mirantis/cri-dockerd/releases/download/v{{ cri_dockerd_version }}/cri-dockerd-{{ cri_dockerd_version }}.{{ image_arch }}.tgz"
skopeo_download_url: "{{ github_url }}/lework/skopeo-binary/releases/download/{{ skopeo_version }}/skopeo-linux-{{ image_arch }}"
yq_download_url: "{{ github_url }}/mikefarah/yq/releases/download/{{ yq_version }}/yq_linux_{{ image_arch }}"
gateway_api_download_url: "{{ github_url }}/kubernetes-sigs/gateway-api/releases/download/{{ gateway_api_version }}/{{ gateway_api_channel }}-install.yaml"

etcd_binary_checksum: "{{ etcd_binary_checksums[image_arch][etcd_version] }}"
cni_binary_checksum: "{{ cni_binary_checksums[image_arch][cni_version] }}"
Expand Down Expand Up @@ -1058,6 +1063,18 @@ downloads:
groups:
- kube_node

gateway_api:
enabled: "{{ gateway_api_enabled }}"
file: true
version: "{{ gateway_api_version }}"
dest: "{{ local_release_dir }}/gateway-api-{{ gateway_api_channel }}-install.yaml"
sha256: "{{ gateway_api_checksum | default(None) }}"
url: "{{ gateway_api_download_url }}"
owner: "root"
mode: "0755"
groups:
- kube_control_plane

csi_attacher:
enabled: "{{ cinder_csi_enabled or aws_ebs_csi_enabled }}"
container: true
Expand Down

0 comments on commit 07a1ab7

Please sign in to comment.