Skip to content

Commit

Permalink
include cloud_manager variable for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kahu Anderson committed May 16, 2024
1 parent 91c015c commit 4639330
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions roles/capi-cluster/workload/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...)

Expand Down
6 changes: 3 additions & 3 deletions roles/capi-cluster/workload/tasks/install-cloud-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 4639330

Please sign in to comment.