Revision 59fb337cf1458a46468e7dd9f8a691174f0a02b5 authored by Jussi Maki on 12 June 2024, 11:02:39 UTC, committed by Jussi Mäki on 17 June 2024, 10:39:39 UTC
Refactor the DeviceManager to use slog logging.

Signed-off-by: Jussi Maki <jussi@isovalent.com>
1 parent 5c57430
Raw File
get-vagrant-kubeconfig.sh
#!/usr/bin/env bash

set -e

config=$(vagrant ssh k8s1-${K8S_VERSION} -- sudo cat /etc/kubernetes/admin.conf)
port=$(cat .vagrant/machines/k8s1-${K8S_VERSION}/virtualbox/id | xargs vboxmanage showvminfo --machinereadable | grep 'Forwarding.*6443' | awk -F ',' '{print $4}')
echo "$config" | sed "s/6443/$port/g"
back to top