Commit 6640ad66 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Fix minor issue with KUBECONFIG

parent 9357961d
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -92,6 +92,9 @@ else
fi
echo "Using value on VAULT_ACCESS_TOKEN=$VAULT_ACCESS_TOKEN"

## Setup KUBECONFIG
export KUBECONFIG=$CUSTOM_KUBECONFIG

### If K8S_IP is empty, then script will try to get ingress-nginx-controller NodePort to grant DNS resolution for register to connect locally to CAPIF nginx
if [ "$K8S_IP" == "NONE" ]; then
    echo "K8S_IP value is NONE. Register service will not have local DNS resolution"
@@ -100,4 +103,3 @@ elif [ -z "$K8S_IP" ]; then
    echo "K8S_IP value will be $K8S_IP"
fi
export KUBECONFIG=$CUSTOM_KUBECONFIG
 No newline at end of file