Closed dlespiau closed 4 years ago
I think this may be due to filtering based on the config value IAM values but here I'm not using a config file, just the command line.
Related issue is every iamserviceaccount is a whole separate CF stack: https://github.com/weaveworks/eksctl/issues/1467
I think eksctl create/delete iamserviceaccount
should be refactored to add/remove JSON entries from one stack template. Same for config file.
This is no longer reproducible. One thing to note is that when using CLI options, the --namespace
option defaults to default
, so if the service account was created in a different namespace, the filter would fail to match and, as a result, the deletion would not proceed.
This is no longer reproducible. One thing to note is that when using CLI options, the
--namespace
option defaults todefault
, so if the service account was created in a different namespace, the filter would fail to match and, as a result, the deletion would not proceed.
It worked. Thank You
after giving --namespace I am able to delete the iamserviceaccount ex -
$ eksctl delete iamserviceaccount --cluster MyCluster --name adot-collector --namespace=fargate-container-insights
2023-01-28 18:28:19 [ℹ] 1 iamserviceaccount (fargate-container-insights/adot-collector) was included (based on the include/exclude rules)
2023-01-28 18:28:20 [ℹ] 1 task: {
2 sequential sub-tasks: {
delete IAM role for serviceaccount "fargate-container-insights/adot-collector" [async],
delete serviceaccount "fargate-container-insights/adot-collector",
} }2023-01-28 18:28:20 [ℹ] will delete stack "eksctl-MyCluster-addon-iamserviceaccount-fargate-container-insights-adot-collector"
What happened?
I've created a
iamserviceaccount
successfully with:However, when trying to delete it,
eksctl
doesn't do anything:What you expected to happen?
I would expect
eksctl
to delete the stack and Kubernetes service account.How to reproduce it?
Steps are included in the bug description.
Anything else we need to know? What OS are you using, are you using a downloaded binary or did you compile eksctl, what type of AWS credentials are you using (i.e. default/named profile, MFA) - please don't include actual credentials though!
Versions Please paste in the output of these commands:
Logs