Skip to content

Commit

Permalink
Set KUBECONFIG to mounted
Browse files Browse the repository at this point in the history
Sets KUBECONFIG to the mounted kubeconfig path. The previous logic that sets KUBECONFIG to the default path causes an error when the mounted kubeconfig path is different from /root/.kube/config.

Signed-off-by: yogananth subramanian <ysubrama@redhat.com>
  • Loading branch information
yogananth-subramanian authored and chaitanyaenr committed Apr 9, 2024
1 parent 92b2622 commit f80dc75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ export TELEMETRY_EVENTS_BACKUP=${TELEMETRY_EVENTS_BACKUP:=True}
export ELASTIC_SERVER=${ELASTIC_SERVER:=""}
export ELASTIC_INDEX=${ELASTIC_INDEX:=""}

# Unset KUBECONFIG to make sure mounted kubeconfig is used
unset KUBECONFIG
# Set KUBECONFIG to mounted kubeconfig
export KUBECONFIG=${KRKN_KUBE_CONFIG}

0 comments on commit f80dc75

Please sign in to comment.