Skip to content

Commit d6dda3d

Browse files
committed
👻 Use k8s_cluster_info instead of k8s, cluster_info
Signed-off-by: Jason Montleon <[email protected]>
1 parent 0b05c1e commit d6dda3d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

roles/tackle/tasks/main.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
---
2+
- name: "Get Cluster information"
3+
kubernetes.core.k8s_cluster_info:
4+
register: api_status
5+
6+
- name: "Create cluster API group list"
7+
set_fact:
8+
api_groups: []
9+
210
- name: "Load cluster API groups"
311
set_fact:
4-
api_groups: "{{ lookup('k8s', cluster_info='api_groups') }}"
12+
api_groups: "{{ (api_groups + [(item | regex_replace('/?v\\d.*'))]) | unique }}"
13+
with_items: "{{ api_status.apis | list }}"
514

615
- name: "Transfer rwx_storage_class setting if hub_bucket_storage_class is not defined"
716
set_fact:

0 commit comments

Comments
 (0)