-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Migrate eks discovery to aws sdk v2 #50603
Conversation
2c56eb2
to
8de9fdc
Compare
7174944
to
d968a0e
Compare
lib/kube/proxy/cluster_details.go
Outdated
type EKSClient interface { | ||
eks.DescribeClusterAPIClient | ||
} | ||
|
||
// STSClient is the subset of the STS Client interface we use. | ||
type STSClient interface { | ||
stscreds.AssumeRoleAPIClient | ||
} |
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.
If our goal is to expose on those two interfaces, why not referring them directly?
This is mostly internal packages and I don't see them being expanded in the future
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.
it is easier to have them split as one is implemented by sts.Client the other by eks.Client, used in different places.
fb8c72e
to
1ef1f91
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.
LGTM - thanks for putting up with all the merge conflicts 😉
ee87f36
to
4039237
Compare
4039237
to
47449d5
Compare
Closes #49129
Removes all usage of sdk v1 for EKS.