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 f4041a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ 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 set-cluster capv-services --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 f4041a6

Please sign in to comment.