From 29396de154abc24c858916b811021d5f4defbb65 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Wed, 29 Mar 2023 22:01:43 +0200 Subject: [PATCH] Inject CPI image tag into manifest --- ansible/roles/assets/tasks/manifests.yml | 6 ++++++ ansible/vars/metacluster.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ansible/roles/assets/tasks/manifests.yml b/ansible/roles/assets/tasks/manifests.yml index 0fa58b4..2348c44 100644 --- a/ansible/roles/assets/tasks/manifests.yml +++ b/ansible/roles/assets/tasks/manifests.yml @@ -73,6 +73,12 @@ delay: 5 until: clusterapi_manifests is not failed +- name: Update cluster-template with image tags + ansible.builtin.replace: + dest: infrastructure-vsphere/{{ components.clusterapi.management.version.infrastructure_vsphere }}/cluster-template.yaml + regexp: ':\${CPI_IMAGE_K8S_VERSION}' + replace: ":{{ components.clusterapi.management.version.cpi_vsphere }}" + - name: Download kube-vip RBAC manifest ansible.builtin.get_url: url: https://kube-vip.io/manifests/rbac.yaml diff --git a/ansible/vars/metacluster.yml b/ansible/vars/metacluster.yml index 77a652e..1862fc7 100644 --- a/ansible/vars/metacluster.yml +++ b/ansible/vars/metacluster.yml @@ -90,6 +90,8 @@ components: cert_manager: v1.11.0 infrastructure_vsphere: v1.6.0 ipam_incluster: v0.1.0-alpha.2 + # Refer to `https://console.cloud.google.com/gcr/images/cloud-provider-vsphere/GLOBAL/cpi/release/manager` for available tags + cpi_vsphere: v1.26.0 workload: version: calico: v3.25.0