Skip to content

Commit

Permalink
👻 Use k8s_cluster_info instead of k8s, cluster_info
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Montleon <[email protected]>
  • Loading branch information
jmontleon committed Jun 18, 2024
1 parent 117fe36 commit 6f0b3c2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion roles/tackle/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
---
- name: "Get Cluster information"
kubernetes.core.k8s_cluster_info:
register: api_status

- name: "Create cluster API group list"
set_fact:
api_groups: []

- name: "Load cluster API groups"
set_fact:
api_groups: "{{ lookup('k8s', cluster_info='api_groups') }}"
api_groups: "{{ (api_groups + [(item | regex_replace('/?v\\d.*'))]) | unique }}"
with_items: "{{ api_status.apis | list }}"

- name: "Transfer rwx_storage_class setting if hub_bucket_storage_class is not defined"
set_fact:
Expand Down

0 comments on commit 6f0b3c2

Please sign in to comment.