generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Collection's util resource discovery fails when complex subresour…
…ces 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 <[email protected]> Co-authored-by: Bikouo Aubin <[email protected]>
- Loading branch information
1 parent
7c4ec3b
commit 1955989
Showing
5 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,8 @@ jobs: | |
|
||
- name: create kubernetes cluster | ||
uses: helm/[email protected] | ||
with: | ||
node_image: "kindest/node:v1.29.2" | ||
|
||
- name: Run integration tests | ||
uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main | ||
|
3 changes: 3 additions & 0 deletions
3
.../20240222-Collections-util-resource-discovery-fails-when-complex-subresources-present.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
bugfixes: | ||
- Resolve Collections util resource discovery fails when complex subresources present (https://github.com/ansible-collections/kubernetes.core/pull/676). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
with_items: | ||
- wait | ||
- api-server-caching | ||
- discovery |