java icon indicating copy to clipboard operation
java copied to clipboard

EKSAuthentication takes in AWSSessionCredentialsProvider instead of StsAssumeRoleCredentialsProvider

Open JuiceW4H opened this issue 4 months ago • 3 comments

Describe the bug EKSAuthentication() takes in AWSSessionCredentialsProvider class instead of StsAssumeRoleCredentialsProvider as per the example provided.

Client Version 24.0.0

Kubernetes Version 1.32

Java Version Java 21

To Reproduce Steps to reproduce the behavior: Simply use the EKSAuthentication() method with a variable of type StsAssumeRoleCredentialsProvider

JuiceW4H avatar Nov 17 '25 16:11 JuiceW4H

I'm pretty sure that this is because the examples are for HEAD and you are using library version 24.0.0

If you are using the 24.0.0 version of the library, the examples can be found in that branch:

https://github.com/kubernetes-client/java/blob/release-24/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java

brendandburns avatar Nov 17 '25 22:11 brendandburns

In the v24.0.0 sample I think it still uses the AWS SDK v1 not v2

JuiceW4H avatar Nov 18 '25 01:11 JuiceW4H

Upon checking there is already a fix in v25.0.0 tag but that version is not yet on maven as maven still only has v24.0.0

JuiceW4H avatar Nov 18 '25 01:11 JuiceW4H