Skip to content

Commit 5827ac6

Browse files
committed
Install OpenStack Resource Controller resources
1 parent f882423 commit 5827ac6

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ jobs:
159159
repository: kubernetes-sigs/kustomize
160160
version_jsonpath: kustomize_version
161161

162+
- key: openstack-resource-controller
163+
path: ./roles/clusterapi/defaults/main.yml
164+
repository: k-orc/openstack-resource-controller
165+
version_jsonpath: clusterapi_orc_version
166+
162167
- key: velero-cli
163168
path: ./roles/velero/defaults/main.yml
164169
repository: vmware-tanzu/velero

roles/clusterapi/defaults/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ clusterapi_openstack_repo: https://github.com/kubernetes-sigs/cluster-api-provid
1010
clusterapi_openstack_version: v0.10.5
1111
clusterapi_openstack_components: "{{ clusterapi_openstack_repo }}/releases/download/{{ clusterapi_openstack_version }}/infrastructure-components.yaml"
1212

13+
# The repo, version and manifest URL for the OpenStack Resource controller
14+
clusterapi_orc_repo: https://github.com/k-orc/openstack-resource-controller
15+
clusterapi_orc_version: v2.1.0
16+
clusterapi_orc_components: "{{ clusterapi_orc_repo }}/releases/download/{{ clusterapi_orc_version }}/install.yaml"
17+
1318
# The diagnostics address for Cluster API components
1419
clusterapi_diagnostics_address: 0.0.0.0:8443
1520
clusterapi_insecure_diagnostics: false

roles/clusterapi/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
22

3+
- name: Install OpenStack Resource Controller resources
4+
ansible.builtin.command: kubectl apply --server-side -f {{ clusterapi_orc_components }}
5+
register: kubectl_install_orc
6+
changed_when: kubectl_install_orc.stdout_lines | select('match', '(?!.*unchanged$)') | length > 0
7+
38
- name: Make kustomization directory
49
file:
510
path: "{{ clusterapi_kustomization_directory }}"

0 commit comments

Comments
 (0)