-
Notifications
You must be signed in to change notification settings - Fork 1.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
Get cluster fixes #153
Get cluster fixes #153
Conversation
.vscode/launch.json
Outdated
@@ -0,0 +1,44 @@ | |||
{ |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
pkg/testutils/cluster.go
Outdated
// ValidClusterStatus checks that the provided status is a valid | ||
// status of a cluster according to AWS SDK | ||
func ValidClusterStatus(status string) bool { | ||
valid := map[string]bool{awseks.ClusterStatusActive: true, awseks.ClusterStatusCreating: true, awseks.ClusterStatusDeleting: true, awseks.ClusterStatusFailed: true} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
9dc005c
to
3e15d01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM! Please squash into one commit before merging 👍
Update the list clusters tests to ensure we cover the scenario where a cluster isn't ready.
3e15d01
to
10b9f96
Compare
Move test integration
Changed the 'list clusters' functionality:
No clusters found
will be output. If you are using the JSON or YAML printers then an empty array is returned. Fixes eksctl get clusters output is confusing when no clusters a present #146.ClusterStatusActive
then it will still print its details. Before this it was ignored. Fixes eksctl get clusters is not clear about cluster status #145.