diff --git a/roles/capi-cluster/workload/defaults/main.yml b/roles/capi-cluster/workload/defaults/main.yml index f0d26cc..a850550 100644 --- a/roles/capi-cluster/workload/defaults/main.yml +++ b/roles/capi-cluster/workload/defaults/main.yml @@ -61,6 +61,8 @@ ca_cert_file: "{{ ca_cert_dir }}/zero_ca.crt" autoscaler_ns: "kube-system" autoscaler_image: "registry.k8s.io/autoscaling/cluster-autoscaler:v1.29.0" +cloud_manager_version: v1.30.0 + ## Variables for OpenID Connect Configuration https://kubernetes.io/docs/admin/authentication/ ## To use OpenID you have to deploy additional an OpenID Provider (e.g Dex, Keycloak, ...) diff --git a/roles/capi-cluster/workload/tasks/install-cloud-manager.yml b/roles/capi-cluster/workload/tasks/install-cloud-manager.yml index 35dc74c..b5e3daf 100644 --- a/roles/capi-cluster/workload/tasks/install-cloud-manager.yml +++ b/roles/capi-cluster/workload/tasks/install-cloud-manager.yml @@ -25,16 +25,16 @@ - name: Workload | Install cloud-controller-manager-roles.yaml shell: >- kubectl --kubeconfig {{ tmp_dir }}/{{ cluster_name }}.kubeconfig apply \ - -f https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/master/manifests/controller-manager/cloud-controller-manager-roles.yaml + -f https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/{{ cloud_manager_version }}/manifests/controller-manager/cloud-controller-manager-roles.yaml - name: Workload | Install cloud-controller-manager-role-bindings.yaml shell: >- kubectl --kubeconfig {{ tmp_dir }}/{{ cluster_name }}.kubeconfig apply \ - -f https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/master/manifests/controller-manager/cloud-controller-manager-role-bindings.yaml + -f https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/{{ cloud_manager_version }}/manifests/controller-manager/cloud-controller-manager-role-bindings.yaml - name: Workload | Install openstack-cloud-controller-manager-ds.yaml shell: >- kubectl --kubeconfig {{ tmp_dir }}/{{ cluster_name }}.kubeconfig apply \ - -f https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/master/manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml + -f https://raw.githubusercontent.com/kubernetes/cloud-provider-openstack/{{ cloud_manager_version }}/manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml when: - cloud_config_secret.stdout != "1"