I’m creating a PR for this issue below.
Currently aws-sdk-go does not have an API call that allows you to filter all EKS clusters in your account like this:
I have resulted to going with the approach to first
ListClusters() and then perform a
DescribeCluster() on each of the clusterNames retrieved from
ListClusters(), then filter locally.
I would like to know if we have any best practice to follow when it comes to filtering locally. I want to future proof this in future so that the way in which clusters can be filtered locally matches with how AWS will implement the API too.