-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix env vars - Fix Deprovision command - Split test and cluster config into separate /tmp directories - combine cluster functions into lib/cluster.sh
- Loading branch information
Showing
5 changed files
with
70 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
function down-test-cluster() { | ||
echo "Deleting cluster $CLUSTER_NAME" | ||
$TESTER_PATH eks delete cluster --path $CLUSTER_CONFIG | ||
} | ||
|
||
function up-test-cluster() { | ||
echo "Creating cluster $CLUSTER_NAME" | ||
ssh-keygen -P cni-test -f $SSH_KEY_PATH | ||
|
||
$TESTER_PATH eks create config --path $CLUSTER_CONFIG | ||
|
||
AWS_K8S_TESTER_EKS_CLUSTER_NAME=$CLUSTER_NAME \ | ||
AWS_K8S_TESTER_EKS_KUBECONFIG_PATH=$KUBECONFIG_PATH \ | ||
AWS_K8S_TESTER_EKS_KUBERNETES_VERSION=${K8S_VERSION%.*} \ | ||
AWS_K8S_TESTER_EKS_ENABLE_WORKER_NODE_PRIVILEGED_PORT_ACCESS=true \ | ||
AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MIN=3 \ | ||
AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MAX=3 \ | ||
AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_DESIRED_CAPACITY=3 \ | ||
AWS_K8S_TESTER_EKS_WORKER_NODE_PRIVATE_KEY_PATH=$SSH_KEY_PATH \ | ||
AWS_K8S_TESTER_EKS_WORKER_NODE_INSTANCE_TYPE=m3.xlarge \ | ||
AWS_K8S_TESTER_EKS_AWS_K8S_TESTER_PATH=$TESTER_PATH \ | ||
AWS_K8S_TESTER_EKS_AWS_IAM_AUTHENTICATOR_PATH=$AUTHENTICATOR_PATH \ | ||
AWS_K8S_TESTER_EKS_KUBECTL_PATH=$KUBECTL_PATH \ | ||
$TESTER_PATH eks create cluster --path $CLUSTER_CONFIG 1>&2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.