Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
#608 Installer support for EKS
Browse files Browse the repository at this point in the history
  • Loading branch information
agrimmer committed Aug 12, 2019
1 parent 183910e commit 3b070ff
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
4 changes: 4 additions & 0 deletions installer/scripts/eks/creds.sav
@@ -0,0 +1,4 @@
{
"clusterName": "CLUSTER_NAME_PLACEHOLDER",
"awsRegion": "AWS_REGION",
}
31 changes: 31 additions & 0 deletions installer/scripts/eks/defineCredentials.sh
@@ -0,0 +1,31 @@
#!/bin/bash

YLW='\033[1;33m'
NC='\033[0m'

echo -e "${YLW}Please enter the credentials as requested below: ${NC}"
read -p "Cluster Name: " CLN
read -p "AWS Region: " RG
echo ""

echo ""
echo -e "${YLW}Please confirm all are correct: ${NC}"
echo "Cluster Name: $CLN"
echo "AWS Region: $RG"
read -p "Is this all correct? (y/n) : " -n 1 -r
echo ""

if [[ $REPLY =~ ^[Yy]$ ]]
then
CREDS=./creds.json
rm $CREDS 2> /dev/null
cat ./aks/creds.sav | sed 's~CLUSTER_NAME_PLACEHOLDER~'"$CLN"'~' | \
sed 's~AWS_REGION~'"$RG"'~' >> $CREDS

fi

cat $CREDS
echo ""
echo "The credentials file can be found here:" $CREDS
echo ""

5 changes: 2 additions & 3 deletions installer/scripts/installKeptn.sh
Expand Up @@ -10,9 +10,8 @@ case $PLATFORM in
./common/install.sh
;;
eks)
echo "$PLATFORM not supported"
echo "Installation aborted"
exit 1
echo "Install on EKS"
./common/install.sh
;;
openshift)
echo "Install on OpenShift"
Expand Down

0 comments on commit 3b070ff

Please sign in to comment.