486b223e01
This replaces kube-master with kube_control_plane because of [1]: The Kubernetes project is moving away from wording that is considered offensive. A new working group WG Naming was created to track this work, and the word "master" was declared as offensive. A proposal was formalized for replacing the word "master" with "control plane". This means it should be removed from source code, documentation, and user-facing configuration from Kubernetes and its sub-projects. NOTE: The reason why this changes it to kube_control_plane not kube-control-plane is for valid group names on ansible. [1]: https://github.com/kubernetes/enhancements/blob/master/keps/sig-cluster-lifecycle/kubeadm/2067-rename-master-label-taint/README.md#motivation
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
---
|
|
- hosts: kube_control_plane[0]
|
|
vars:
|
|
sonobuoy_version: 0.20.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 }}"
|