Test: add install hydrophone

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
ChengHao Yang
2025-11-29 01:57:35 +08:00
parent 78199c3bc3
commit c138157886
3 changed files with 21 additions and 0 deletions

View File

@@ -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"

View 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

View File

@@ -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: