Skip to content

Commit de4dcc9

Browse files
committed
Add cluster-connect.sh
1 parent 1b3256e commit de4dcc9

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
source ./conf/env.conf
4+
source ${CONF}/env_input
5+
6+
usage(){
7+
echo ""
8+
echo "Usage: $0 <cluster_name>
9+
echo ""
10+
}
11+
12+
if [ "$1" == "" ]; then
13+
help
14+
else
15+
echo ""
16+
echo "Connecting to $IMPL cluster: $1 "
17+
18+
impl/${IMPL}/cluster-connect.sh $1
19+
fi
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
help(){
4+
echo ""
5+
echo "Usage: $0 <cluster_name>
6+
echo ""
7+
}
8+
9+
if [ "$1" == "" ]; then
10+
help
11+
else
12+
CMD="aws eks update-kubeconfig --name ${1} ${ENDPOINT_ARG}"
13+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
14+
eval "$CMD"
15+
fi
16+

0 commit comments

Comments
 (0)