From 06755ba2c59e93814d50a16261bba0a7a59c03ab Mon Sep 17 00:00:00 2001 From: Bhavitha Koduru Date: Fri, 26 Sep 2025 17:28:28 +0000 Subject: [PATCH] Fix launch template name for MNG creation --- tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml b/tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml index 88a81229..cdfe1f86 100644 --- a/tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml +++ b/tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml @@ -72,7 +72,11 @@ spec: create_and_validate_dp_nodes() { node_group_name=$node_group-$1 - launch_template_name=$(params.cluster-name)-launchTemplate + # by default assume -launchTemplate convention + launch_template_name="$(params.cluster-name)-launchTemplate" + if [ -n "$(params.launch-template-name)" ]; then + launch_template_name="$(params.launch-template-name)" + fi CREATED_NODEGROUP=$(aws eks $ENDPOINT_FLAG --region $(params.region) list-nodegroups --cluster-name $(params.cluster-name) --query 'nodegroups[?@==`'$node_group_name'`]' --output text) EC2_INSTANCES=$3 if [ "$CREATED_NODEGROUP" == "" ]; then