You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. ---
  2. - hosts: kube_control_plane[0]
  3. vars:
  4. sonobuoy_version: 0.56.11
  5. sonobuoy_arch: amd64
  6. sonobuoy_parallel: 30
  7. sonobuoy_path: /usr/local/bin/sonobuoy
  8. sonobuoy_mode: Quick
  9. tasks:
  10. - name: Run sonobuoy
  11. when:
  12. - sonobuoy_enabled is defined
  13. - sonobuoy_enabled
  14. block:
  15. - name: Download sonobuoy
  16. get_url:
  17. url: "https://github.com/heptio/sonobuoy/releases/download/v{{ sonobuoy_version }}/sonobuoy_{{ sonobuoy_version }}_linux_{{ sonobuoy_arch }}.tar.gz"
  18. dest: /tmp/sonobuoy.tar.gz
  19. - name: Extract sonobuoy
  20. unarchive:
  21. src: /tmp/sonobuoy.tar.gz
  22. dest: /usr/local/bin/
  23. copy: no
  24. - name: Run sonobuoy
  25. command: "{{ sonobuoy_path }} run --mode {{ sonobuoy_mode }} --e2e-parallel {{ sonobuoy_parallel }} --wait"
  26. when: sonobuoy_enabled | default(false)
  27. - name: Run sonobuoy retrieve
  28. command: "{{ sonobuoy_path }} retrieve"
  29. register: sonobuoy_retrieve
  30. - name: Run inspect results
  31. command: "{{ sonobuoy_path }} results {{ sonobuoy_retrieve.stdout }} --plugin e2e --mode report"