Skip to content

Update Test Samples Workflow - Set up Test EKS Cluster for Dapr#2013

Merged
kachawla merged 2 commits into
radius-project:v0.42from
kachawla:eks-dapr
Jan 24, 2025
Merged

Update Test Samples Workflow - Set up Test EKS Cluster for Dapr#2013
kachawla merged 2 commits into
radius-project:v0.42from
kachawla:eks-dapr

Conversation

@kachawla
Copy link
Copy Markdown
Member

This change updated Radius installation to always install Dapr, which is causing failures in eshop-aws workflow which runs on EKS cluster, as the cluster is lacking the required prerequisites for Dapr through the approach taken in the Radius CLI.

This is causing consistent sample failures and operational pain during every release.

Fixes: #1901 and radius-project/radius#8141

Signed-off-by: Karishma Chawla <kachawla@microsoft.com>
@kachawla kachawla requested review from a team as code owners January 15, 2025 00:20
@kachawla kachawla changed the title Set up Test EKS Cluster for Dapr Update Test Samples Workflow - Set up Test EKS Cluster for Dapr Jan 15, 2025
@kachawla kachawla requested a review from willdavsmith January 16, 2025 00:32
ytimocin
ytimocin previously approved these changes Jan 18, 2025
Copy link
Copy Markdown
Contributor

@ytimocin ytimocin left a comment

Choose a reason for hiding this comment

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

PRs don't run the tests on AWS. We can merge this in and test it in production.

Comment thread .github/workflows/test.yaml Outdated
Comment thread .github/workflows/test.yaml Outdated
Signed-off-by: Karishma Chawla <kachawla@microsoft.com>
aws eks update-kubeconfig --region ${{ env.AWS_REGION }} --name ${{ steps.gen-id.outputs.TEST_EKS_CLUSTER_NAME }}
timeout-minutes: 60
continue-on-error: false
- name: Install Dapr
Copy link
Copy Markdown
Member Author

@kachawla kachawla Jan 24, 2025

Choose a reason for hiding this comment

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

Removing this step since Dapr is installed by default with Radius now radius-project/radius#8033

Copy link
Copy Markdown
Contributor

@ytimocin ytimocin left a comment

Choose a reason for hiding this comment

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

Looking good. Let's test it out in production.

Comment on lines +254 to +265
# Fetch the node group name dynamically
NODEGROUP_NAME=$(eksctl get nodegroup \
--cluster ${{ steps.gen-id.outputs.TEST_EKS_CLUSTER_NAME }} \
--region ${{ env.AWS_REGION }} \
-o json | jq -r '.[0].Name')

# Fetch the security group ID for the EKS worker nodes
NODE_SECURITY_GROUP_ID=$(eksctl get nodegroup \
--cluster ${{ steps.gen-id.outputs.TEST_EKS_CLUSTER_NAME }} \
--name $NODEGROUP_NAME \
--region ${{ env.AWS_REGION }} \
-o json | jq -r '.[0].Resources.SecurityGroup.ID')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can consolidate this into a single step using the below command.

aws eks describe-cluster --name <cluster_name> --query 'cluster.resourcesVpcConfig.clusterSecurityGroupId' --region <region>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will follow up on this in a separate PR

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated here #2030. Thanks for the feedback.

@kachawla kachawla merged commit 885858d into radius-project:v0.42 Jan 24, 2025
lakshmimsft pushed a commit to lakshmimsft/samples-fork that referenced this pull request Jan 24, 2025
nithyatsu pushed a commit that referenced this pull request Feb 3, 2025
* Update samples for v0.42

* Update Test Samples Workflow - Set up Test EKS Cluster for Dapr (#2013)

* Add check to verify manifests are registered in test workflow (#2031)

* Add dependabot file (#2003)

* add dependabot file

Signed-off-by: sk593 <shruthikumar@microsoft.com>

* remove dir

Signed-off-by: sk593 <shruthikumar@microsoft.com>

* update dir

Signed-off-by: sk593 <shruthikumar@microsoft.com>

* nit

Signed-off-by: sk593 <shruthikumar@microsoft.com>

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>

* add check to verify manifests are registered

Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Co-authored-by: Shruthi Kumar <shruthikumar@microsoft.com>

* Update command to fetch cluster security group (#2030)

Signed-off-by: Karishma Chawla <kachawla@microsoft.com>

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
Signed-off-by: lakshmimsft <ljavadekar@microsoft.com>
Signed-off-by: Karishma Chawla <kachawla@microsoft.com>
Signed-off-by: Radius CI Bot <radiuscoreteam@service.microsoft.com>
Co-authored-by: Karishma Chawla <kachawla@microsoft.com>
Co-authored-by: Lakshmi Javadekar <103459615+lakshmimsft@users.noreply.github.com>
Co-authored-by: Shruthi Kumar <shruthikumar@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eshop-aws actions should be updated to work with 0.41

4 participants