Skip to content
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

Importing AWS EKS cluster returns just one cluster #35

Closed
casidiablo opened this issue Feb 27, 2020 · 5 comments · Fixed by #36
Closed

Importing AWS EKS cluster returns just one cluster #35

casidiablo opened this issue Feb 27, 2020 · 5 comments · Fixed by #36
Labels
bug Something isn't working

Comments

@casidiablo
Copy link

I have an account with multiple EKS clusters. Only one of them is listed when running the import for EKS.

This happens to me on version 1.2.0 on Android.

@casidiablo
Copy link
Author

Also, could not figure out how to build the app myself. I understand that this uses ionic and potentially capacitator, but a basic README on how to build an APK would be nice

@ricoberger
Copy link
Member

ricoberger commented Feb 27, 2020

Thanks for reporting. I only tested with one EKS cluster, so I will look deeper into it.

Are all your clusters in one region? Because if they are in separate regions you have to add the AWS credentials for each region.

@casidiablo
Copy link
Author

casidiablo commented Feb 27, 2020

Yeah, all of them in the same region. The weird thing is that looking at the code it does look like you are returning ALL clusters:

kubenav/src/utils/api.ts

Lines 42 to 50 in 649dead

let data = await plugin.awsGetClusters({
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey,
region: region,
});
if (data.data !== '') {
return JSON.parse(data.data);
} else {

For the record, this is the output of awscli:

aws eks list-clusters --region us-west-2
{
    "clusters": [
        "default-eks-prod-us-west-2",
        "default-eks-stage-us-west-2"
    ]
}

The Android app, however, only shows the second cluster in that list.

@ricoberger
Copy link
Member

Hi, thanks for the detailed report. I was able to reproduce the issue and will look for a solution.

@ricoberger ricoberger added the bug Something isn't working label Feb 29, 2020
@ricoberger
Copy link
Member

Thanks again, for reporting. The fix will we included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants