Skip to content

Commit

Permalink
Temporarily fixup e2e.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer [email protected]
  • Loading branch information
sbueringer committed Aug 8, 2023
1 parent f1341ab commit 85cc19c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ function kubectl_get_jsonpath() {

# Retrieve an IP to be used as the kube-vip IP
KUBECONFIG="/root/ipam-conf/capv-services.conf"

# Temporarily fixup the KUBECONFIG (TODO(sbueringer) should be removed later)
cp ${KUBECONFIG} /tmp/kubeconfig
KUBECONFIG=/tmp/kubeconfig
kubectl --kubeconfig=${KUBECONFIG} config get clusters
kubectl --kubeconfig=${KUBECONFIG} config set-cluster kind-capi-test --insecure-skip-tls-verify=true --server=https://192.168.6.36

IPCLAIM_NAME="ip-claim-$(openssl rand -hex 20)"
sed "s/IPCLAIM_NAME/${IPCLAIM_NAME}/" "${REPO_ROOT}/hack/ipclaim-template.yaml" | kubectl --kubeconfig=${KUBECONFIG} create -f -
IPADDRESS_NAME=$(kubectl_get_jsonpath ipclaim "${IPCLAIM_NAME}" '{@.status.address.name}')
Expand Down

0 comments on commit 85cc19c

Please sign in to comment.