mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-29 22:03:22 -02:30
CI: replace Sonobuoy with Hydrophone for conformance smoke test (#13680)
Reuse the existing Hydrophone installation and preserve the single test selected by Sonobuoy Quick mode. Rename the opt-in variable to conformance_enabled and update the Elastx testcase.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
sonobuoy_enabled: true
|
conformance_enabled: true
|
||||||
|
|
||||||
# Ignore ping errors
|
# Ignore ping errors
|
||||||
ignore_assert_errors: true
|
ignore_assert_errors: true
|
||||||
|
|||||||
@@ -1,22 +1,3 @@
|
|||||||
---
|
---
|
||||||
- name: Download sonobuoy
|
- name: Run the conformance smoke test
|
||||||
get_url:
|
command: '{{ hydrophone_path }} --focus="Pods should be submitted and removed" --parallel {{ hydrophone_parallel }}'
|
||||||
url: "https://github.com/vmware-tanzu/sonobuoy/releases/download/v{{ sonobuoy_version }}/sonobuoy_{{ sonobuoy_version }}_linux_{{ sonobuoy_arch }}.tar.gz"
|
|
||||||
dest: /tmp/sonobuoy.tar.gz
|
|
||||||
mode: "0644"
|
|
||||||
|
|
||||||
- name: Extract sonobuoy
|
|
||||||
unarchive:
|
|
||||||
src: /tmp/sonobuoy.tar.gz
|
|
||||||
dest: /usr/local/bin/
|
|
||||||
copy: false
|
|
||||||
|
|
||||||
- name: Run sonobuoy
|
|
||||||
command: "{{ sonobuoy_path }} run --mode {{ sonobuoy_mode }} --e2e-parallel {{ sonobuoy_parallel }} --wait"
|
|
||||||
|
|
||||||
- name: Run sonobuoy retrieve
|
|
||||||
command: "{{ sonobuoy_path }} retrieve"
|
|
||||||
register: sonobuoy_retrieve
|
|
||||||
|
|
||||||
- name: Run inspect results
|
|
||||||
command: "{{ sonobuoy_path }} results {{ sonobuoy_retrieve.stdout }} --plugin e2e --mode report"
|
|
||||||
|
|||||||
@@ -40,12 +40,4 @@
|
|||||||
import_tasks: 100_check-k8s-conformance.yml
|
import_tasks: 100_check-k8s-conformance.yml
|
||||||
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
when:
|
when: conformance_enabled | default(false)
|
||||||
- sonobuoy_enabled is defined
|
|
||||||
- sonobuoy_enabled
|
|
||||||
vars:
|
|
||||||
sonobuoy_version: 0.57.3
|
|
||||||
sonobuoy_arch: amd64
|
|
||||||
sonobuoy_parallel: 30
|
|
||||||
sonobuoy_path: /usr/local/bin/sonobuoy
|
|
||||||
sonobuoy_mode: Quick
|
|
||||||
|
|||||||
Reference in New Issue
Block a user