a43e0d3f95
* Switch to Kubernetes v1.16.0 Change-Id: I5d6a9528b2d443750fc5e031aff15ad3ffead158 * Fix download localhost cached file path Change-Id: I65e79b70e3d1b37265ebc60f41b460cf4b0a0d47 * fix kubeadm etcd for v1.16 Change-Id: I6888a00fd48b530a38b0b31c4095492476af42d2 * disable tf packet jobs Change-Id: I075c4666547fdea4c50ec04864f38e2cfaa79154 * Disable contiv packet jobs. Fix kube-router Change-Id: I3170e8789e60711d4cee8faf65f2094480b79b8d * bump sonobuoy version Change-Id: Ib946905629c7c53ed88f08fb2f41c454457a0097
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
---
|
|
- hosts: kube-master[0]
|
|
vars:
|
|
sonobuoy_version: 0.16.0
|
|
sonobuoy_arch: amd64
|
|
sonobuoy_parallel: 30
|
|
sonobuoy_path: /usr/local/bin/sonobuoy
|
|
sonobuoy_skip: 'Alpha|Disruptive|Feature|Flaky|Slow|Serial'
|
|
sonobuoy_mode: Quick
|
|
|
|
tasks:
|
|
- name: Run sonobuoy
|
|
when:
|
|
- sonobuoy_enabled is defined
|
|
- sonobuoy_enabled
|
|
block:
|
|
- name: Download sonobuoy
|
|
get_url:
|
|
url: "https://github.com/heptio/sonobuoy/releases/download/v{{ sonobuoy_version }}/sonobuoy_{{ sonobuoy_version }}_linux_{{ sonobuoy_arch }}.tar.gz"
|
|
dest: /tmp/sonobuoy.tar.gz
|
|
|
|
- name: Extract sonobuoy
|
|
unarchive:
|
|
src: /tmp/sonobuoy.tar.gz
|
|
dest: /usr/local/bin/
|
|
copy: no
|
|
|
|
- name: Run sonobuoy
|
|
command: "{{ sonobuoy_path }} run --mode {{ sonobuoy_mode }} --e2e-parallel {{ sonobuoy_parallel }} --e2e-skip {{ sonobuoy_skip }} --wait"
|
|
when: sonobuoy_enabled | default(false)
|
|
|
|
- name: Run sonobuoy retrieve
|
|
command: "{{ sonobuoy_path }} retrieve"
|
|
register: sonobuoy_retrieve
|
|
|
|
- name: Run inspect results
|
|
command: "{{ sonobuoy_path }} e2e {{ sonobuoy_retrieve.stdout }}"
|