Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/tekton-resources/tasks/setup/eks/awscli-mng.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cluster-name>-launchTemplate convention
launch_template_name="$(params.cluster-name)-launchTemplate"
if [ -n "$(params.launch-template-name)" ]; then
launch_template_name="$(params.launch-template-name)"
fi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which pipeline is running into this?
Based on the pipeline definitions in mainline branch, steps that use the managed-nodegroup creation (awscli-mng) tasks arent passing the launch-template-name param so this would be a no-op for now.

ex. https://github.com/awslabs/kubernetes-iteration-toolkit/blob/main/tests/tekton-resources/pipelines/eks/awscli-cl2-load-with-addons-slos.yaml#L223-L245

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
Expand Down