16 lines
251 B
Plaintext
16 lines
251 B
Plaintext
![]()
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
set +ex
|
||
|
|
||
|
CDIR=$(pwd -P)
|
||
|
|
||
|
echo "Setting 'kk' as a kubectl alias"
|
||
|
alias kk=kubectl
|
||
|
|
||
|
if [ -f kubeconfig.conf ]; then
|
||
|
export KUBECONFIG="${CDIR}/kubeconfig.conf"
|
||
|
else
|
||
|
echo "Fail whale. You have no kubeconfig.conf file"
|
||
|
exit 1
|
||
|
fi
|