Skip to content

Commit

Permalink
tests: use latest dev etcd-manager image in bare-metal test
Browse files Browse the repository at this point in the history
At least while we are building out the static functionality.
  • Loading branch information
justinsb committed Sep 3, 2024
1 parent adce725 commit cfc56ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/scenarios/bare-metal/dump-artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ for vm in 0 1 2; do
vm_name="vm${vm}"
mkdir -p ${ARTIFACTS}/vms/${vm_name}/logs/
scp -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@10.123.45.10:/var/log/etcd* ${ARTIFACTS}/vms/${vm_name}/logs/ || true
ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@10.123.45.10 journalctl --no-pager -u kubelet 2>&1 > ${ARTIFACTS}/vms/${vm_name}/logs/journal-kubelet.service || true
done
9 changes: 9 additions & 0 deletions tests/e2e/scenarios/bare-metal/run-test
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ ${KOPS} create cluster --cloud=metal metal.k8s.local --zones main
# TODO: is this the best option?
${KOPS} edit cluster metal.k8s.local --set spec.api.publicName=10.123.45.10

# Use latest etcd-manager image (while we're adding features)
${KOPS} edit cluster metal.k8s.local --set 'spec.etcdClusters[*].manager.image=us-central1-docker.pkg.dev/k8s-staging-images/etcd-manager/etcd-manager-static:latest'

# List clusters
${KOPS} get cluster
${KOPS} get cluster -oyaml
Expand All @@ -100,4 +103,10 @@ ssh-add ${REPO_ROOT}/.build/.ssh/id_ed25519
# Enroll the control-plane VM
${KOPS} toolbox enroll --cluster metal.k8s.local --instance-group control-plane-main --host 10.123.45.10 --v=8

# Load an image into the VM
docker save local.dev/etcd-manager-minimal:latest | ssh -o StrictHostKeyChecking=accept-new -i ${WORKDIR}/.ssh/id_ed25519 root@10.123.45.10 ctr --namespace k8s.io images import -

echo "Waiting 60 seconds for kube to start"
sleep 60

echo "Test successful"

0 comments on commit cfc56ce

Please sign in to comment.