-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eks-v2-alpha: can't delete fargate cluster #33347
Comments
Looking at https://docs.aws.amazon.com/eks/latest/userguide/fargate-getting-started.html#fargate-gs-coredns Specifically
This means for Fargate cluster, we probably should complete remove this annotation rather than patch it from aws-cdk/packages/@aws-cdk/aws-eks-v2-alpha/lib/cluster.ts Lines 1564 to 1572 in 9e3123f
I guess we need to confirm this with EKS team if it's recommended to completely remove the annotation. |
The issue is during the deletion, the Will create a PR to fix it. |
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
### Issue # (if applicable) Closes aws#33347. ### Reason for this change The fargate cluster deletion issue is because the cluster admin access entry is deleted before deleting `KubernetesPatch`. Since deleting `KubernetesPatch` requires 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 - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
can't destroy the eks fargate cluster
Logs: /aws/lambda/v32-stack-helloeksKubectlProviderHandler788A3C17-CURPgTpq6yNx
4 Currently in progress: v32-stack, helloeksfargateprofiledefault2FADE994
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
can destroy the stack with the cluster
Current Behavior
can't destroy the stack
Reproduction Steps
cdk deploy & destroy
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.177.0
Framework Version
No response
Node.js Version
all
OS
linux
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: