We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f999043 commit 71639d5Copy full SHA for 71639d5
tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml
@@ -72,7 +72,11 @@ spec:
72
create_and_validate_dp_nodes()
73
{
74
node_group_name=$node_group-$1
75
- launch_template_name=$(params.cluster-name)-launchTemplate
+ # by default assume <cluster-name>-launchTemplate convention
76
+ launch_template_name="$(params.cluster-name)-launchTemplate"
77
+ if [ -n "$(params.launch-template-name)" ]; then
78
+ launch_template_name="$(params.launch-template-name)"
79
+ fi
80
CREATED_NODEGROUP=$(aws eks $ENDPOINT_FLAG --region $(params.region) list-nodegroups --cluster-name $(params.cluster-name) --query 'nodegroups[?@==`'$node_group_name'`]' --output text)
81
EC2_INSTANCES=$3
82
if [ "$CREATED_NODEGROUP" == "" ]; then
0 commit comments