mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-07 05:22:39 +00:00
[PR #676/19559892 backport][stable-3] fix(Collection's util resource discovery fails when complex subresources present #659) (#687)
* fix(Collection's util resource discovery fails when complex subresources present #659) (#676)
* fix(Collection's util resource discovery fails when complex subresources present #659)
* fix(add changelog fragment)
* update node image
* Create discovery.yml
* Update main.yml
---------
Co-authored-by: Bastien Bosser <bastien.bosser@eviden.com>
Co-authored-by: Bikouo Aubin <79859644+abikouo@users.noreply.github.com>
(cherry picked from commit 1955989278)
* adding sanity ignore file
* Remove refresh_ignore_files
* Update ignore files content
---------
Co-authored-by: bastienbosser <55381632+bastienbosser@users.noreply.github.com>
Co-authored-by: abikouo <abikouo@redhat.com>
This commit is contained in:
32
tests/integration/targets/k8s_info/tasks/discovery.yml
Normal file
32
tests/integration/targets/k8s_info/tasks/discovery.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
# Testing fix for issue https://github.com/ansible-collections/kubernetes.core/pull/676
|
||||
- vars:
|
||||
kubevirt_release: "v1.1.1"
|
||||
block:
|
||||
- name: Delete existing namespace
|
||||
kubernetes.core.k8s:
|
||||
kind: namespace
|
||||
namespace: kubevirt
|
||||
state: absent
|
||||
|
||||
- name: Create kubevirt resources
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
apply: true
|
||||
src: "{{ item }}"
|
||||
with_items:
|
||||
- "https://github.com/kubevirt/kubevirt/releases/download/{{ kubevirt_release }}/kubevirt-operator.yaml"
|
||||
- "https://github.com/kubevirt/kubevirt/releases/download/{{ kubevirt_release }}/kubevirt-cr.yaml"
|
||||
|
||||
- name: Read kubevirt Deployment
|
||||
k8s_info:
|
||||
kind: Deployment
|
||||
namespace: kubevirt
|
||||
always:
|
||||
- name: Delete existing namespace
|
||||
kubernetes.core.k8s:
|
||||
kind: namespace
|
||||
namespace: kubevirt
|
||||
state: absent
|
||||
wait: true
|
||||
ignore_errors: true
|
||||
@@ -3,3 +3,4 @@
|
||||
with_items:
|
||||
- wait
|
||||
- api-server-caching
|
||||
- discovery
|
||||
|
||||
Reference in New Issue
Block a user