mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 08:18:44 -03:30
Test: add install hydrophone
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
@@ -38,3 +38,9 @@ flannel_image_repo: "{{ quay_image_repo }}/kubespray/flannel"
|
|||||||
flannel_init_image_repo: "{{ quay_image_repo }}/kubespray/flannel-cni-plugin"
|
flannel_init_image_repo: "{{ quay_image_repo }}/kubespray/flannel-cni-plugin"
|
||||||
|
|
||||||
local_release_dir: "{{ '/tmp/releases' if inventory_hostname != 'localhost' else (lookup('env', 'PWD') + '/downloads') }}"
|
local_release_dir: "{{ '/tmp/releases' if inventory_hostname != 'localhost' else (lookup('env', 'PWD') + '/downloads') }}"
|
||||||
|
|
||||||
|
hydrophone_version: "0.7.0"
|
||||||
|
hydrophone_arch: "x86_64"
|
||||||
|
hydrophone_checksum: "sha256:15a6c09962f9bd4a1587af068b5edef1072327a77012d8fbb84992c7c87c0475"
|
||||||
|
hydrophone_parallel: 1
|
||||||
|
hydrophone_path: "{{ bin_dir }}/hydrophone"
|
||||||
|
|||||||
13
tests/testcases/000_install-hydrophone.yml
Normal file
13
tests/testcases/000_install-hydrophone.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- name: Download hydrophone
|
||||||
|
get_url:
|
||||||
|
url: "https://github.com/kubernetes-sigs/hydrophone/releases/download/v{{ hydrophone_version }}/hydrophone_Linux_{{ hydrophone_arch }}.tar.gz"
|
||||||
|
dest: /tmp/hydrophone.tar.gz
|
||||||
|
checksum: "{{ hydrophone_checksum }}"
|
||||||
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: Extract hydrophone
|
||||||
|
unarchive:
|
||||||
|
src: /tmp/hydrophone.tar.gz
|
||||||
|
dest: "{{ bin_dir }}"
|
||||||
|
copy: false
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
- name: Import Kubespray variables
|
- name: Import Kubespray variables
|
||||||
import_role:
|
import_role:
|
||||||
name: ../../roles/kubespray_defaults
|
name: ../../roles/kubespray_defaults
|
||||||
|
- name: Install the Hydrophone for tests
|
||||||
|
import_tasks: 000_install-hydrophone.yml
|
||||||
- name: Testcases for apiserver
|
- name: Testcases for apiserver
|
||||||
import_tasks: 010_check-apiserver.yml
|
import_tasks: 010_check-apiserver.yml
|
||||||
when:
|
when:
|
||||||
|
|||||||
Reference in New Issue
Block a user