We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b05c1e commit d6dda3dCopy full SHA for d6dda3d
roles/tackle/tasks/main.yml
@@ -1,7 +1,16 @@
1
---
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
10
- name: "Load cluster API groups"
11
set_fact:
- 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 }}"
14
15
- name: "Transfer rwx_storage_class setting if hub_bucket_storage_class is not defined"
16
0 commit comments