mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-06 21:12:37 +00:00
Fix apis being overwritten when using k8s_cluster_info (#47)
* Update and rename 389-fix-apis-being-overwritten-in-k8s_cluster_info.yaml to 41-fix-apis-being-overwritten-in-k8s_cluster_info.yaml * Update changelogs/fragments/41-fix-apis-being-overwritten-in-k8s_cluster_info.yaml Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
- name: Get core API version
|
||||
set_fact:
|
||||
crd: "{{ api_details.apis['apiextensions.k8s.io'] }}"
|
||||
crd: "{{ api_details.apis['apiextensions.k8s.io/v1'] }}"
|
||||
host: "{{ api_details.connection['host'] }}"
|
||||
client_version: "{{ api_details.version['client'] }}"
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
assert:
|
||||
that:
|
||||
- api_details.apis is defined
|
||||
- api_details.apis.v1.Secret is defined
|
||||
- api_details.apis.v1.Service is defined
|
||||
- crd is defined
|
||||
- host is defined
|
||||
- client_version is defined
|
||||
|
||||
Reference in New Issue
Block a user