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.

38 lines
1.1 KiB

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