fix(eks-v2-alpha): can't delete fargate cluster#33573
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #33573 +/- ##
=======================================
Coverage 82.21% 82.21%
=======================================
Files 119 119
Lines 6876 6876
Branches 1162 1162
=======================================
Hits 5653 5653
Misses 1120 1120
Partials 103 103
Flags with carried forward coverage won't be shown. Click here to find out more.
|
GavinZZ
left a comment
There was a problem hiding this comment.
Why do we need to set LAMBDA_CREATE_NEW_POLICIES_WITH_ADDTOROLEPOLICY? I see you mentioned in description that without this it will create new policy when running the test. Is this happening in main as well?
|
@GavinZZ yes without this change, I see integration tests failed with following changes: It only happens in my local though. CodeBuild looks fine. I'm not sure if it happens to other people. |
477b8a9 to
906f157
Compare
e95dee0 to
76a9306
Compare
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #33347.
Reason for this change
The fargate cluster deletion issue is because the cluster admin access entry is deleted before deleting
KubernetesPatch.Since deleting
KubernetesPatchrequires applying a restore patch to the cluster, it will still need the cluster access. In this case, because the access entry is deleted, kubectl provider won't be able to apply the patch to the cluster anymore.Description of changes
add an explicit dependency from patch to the access entry so the patch will only be deleted after the access entry
Description of how you validated changes
unit tests/integration tests
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license