Download MetalLB CRDs for respective versions (#225)

* Download MetalLB CRDs for respective versions

This ensures that the CRDs match the actual MetalLB controller version,
as given by the user.

* Download VIP RBAC definitions for respective version
This commit is contained in:
Simon Leiner
2023-02-07 05:24:02 +01:00
committed by GitHub
parent ed4d888e3d
commit 10c6ef1d57
5 changed files with 18 additions and 1850 deletions

View File

@@ -8,9 +8,9 @@
mode: 0644
when: ansible_hostname == hostvars[groups['master'][0]]['ansible_hostname']
- name: Copy vip rbac manifest to first master
template:
src: "vip.rbac.yaml.j2"
- name: Download vip rbac manifest to first master
ansible.builtin.get_url:
url: "https://raw.githubusercontent.com/kube-vip/kube-vip/{{ kube_vip_tag_version }}/docs/manifests/rbac.yaml"
dest: "/var/lib/rancher/k3s/server/manifests/vip-rbac.yaml"
owner: root
group: root