From 103620dc5ceec338b3f080ffb54efaabf97d90ed Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Mon, 25 Nov 2019 22:48:43 +0000 Subject: [PATCH] chore: add ability to specify custom intaller to libvirt setup This is useful when developing Talos. Signed-off-by: Andrew Rynhard --- hack/test/integration/libvirt.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/test/integration/libvirt.sh b/hack/test/integration/libvirt.sh index 17e475979..ea1fb20b7 100755 --- a/hack/test/integration/libvirt.sh +++ b/hack/test/integration/libvirt.sh @@ -29,6 +29,8 @@ function usage { NODES=(control-plane-1 control-plane-2 control-plane-3 worker-1) +INSTALLER=${INSTALLER:-docker.io/autonomy/installer:latest} + VM_MEMORY=${VM_MEMORY:-2048} VM_DISK=${VM_DISK:-10} @@ -47,10 +49,11 @@ WORKER_1_NAME=worker-1 WORKER_1_MAC=52:54:00:d7:99:c7 function up { + echo ${INSTALLER} cp $PWD/../../../build/initramfs.xz ./matchbox/assets/ cp $PWD/../../../build/vmlinuz ./matchbox/assets/ cd matchbox/assets - $PWD/../../../../..//build/osctl-linux-amd64 config generate --install-image docker.io/autonomy/installer:latest integration-test https://kubernetes.talos.dev:6443 + $PWD/../../../../../build/osctl-linux-amd64 config generate --install-image ${INSTALLER} integration-test https://kubernetes.talos.dev:6443 yq w -i init.yaml machine.install.extraKernelArgs[+] 'console=ttyS0' yq w -i controlplane.yaml machine.install.extraKernelArgs[+] 'console=ttyS0' yq w -i join.yaml machine.install.extraKernelArgs[+] 'console=ttyS0'