This repository was archived by the owner on Sep 30, 2020. It is now read-only.
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ WORK_DIR=${E2E_DIR}/assets/${KUBE_AWS_CLUSTER_NAME}
6
6
TESTINFRA_DIR=${E2E_DIR} /testinfra
7
7
KUBE_AWS_NODE_POOL_INDEX=${KUBE_AWS_NODE_POOL_INDEX:- 1}
8
8
KUBE_AWS_NODE_POOL_NAME=${KUBE_AWS_CLUSTER_NAME} -nodepool${KUBE_AWS_NODE_POOL_INDEX}
9
+ KUBE_AWS_NODE_POOL_STACK_NAME=${KUBE_AWS_CLUSTER_NAME} -${KUBE_AWS_NODE_POOL_NAME}
9
10
NODE_POOL_ASSETS_DIR=${E2E_DIR} /assets/${KUBE_AWS_CLUSTER_NAME} /node-pools/${KUBE_AWS_NODE_POOL_NAME}
10
11
KUBE_AWS_TEST_INFRA_STACK_NAME=${KUBE_AWS_TEST_INFRA_STACK_NAME:- ${KUBE_AWS_CLUSTER_NAME} -testinfra}
11
12
SRC_DIR=$( cd $( dirname $0 ) ; cd ..; pwd)
@@ -330,13 +331,13 @@ nodepool_update() {
330
331
nodepool_destroy () {
331
332
cd ${WORK_DIR}
332
333
333
- status=$( aws cloudformation describe-stacks --stack-name ${KUBE_AWS_NODE_POOL_NAME } --output json | jq -rc ' .Stacks[0].StackStatus' )
334
+ status=$( aws cloudformation describe-stacks --stack-name ${KUBE_AWS_NODE_POOL_STACK_NAME } --output json | jq -rc ' .Stacks[0].StackStatus' )
334
335
335
336
if [ " $status " != " DELETE_IN_PROGRESS" ]; then
336
337
${KUBE_AWS_CMD} node-pools destroy --node-pool-name ${KUBE_AWS_NODE_POOL_NAME}
337
338
else
338
339
aws cloudformation wait stack-delete-complete \
339
- --stack-name ${KUBE_AWS_NODE_POOL_NAME }
340
+ --stack-name ${KUBE_AWS_NODE_POOL_STACK_NAME }
340
341
fi
341
342
}
342
343
You can’t perform that action at this time.
0 commit comments