Skip to content

Commit

Permalink
Update aws_eks_credentials.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
alauddinulaganathan authored Mar 28, 2024
1 parent 7a75833 commit 7c73bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kubeclient/aws_eks_credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def token(credentials, eks_cluster, region: 'us-east-1', is_credentials_provider
http_method: 'GET',
url: "https://sts.#{region}.amazonaws.com/?Action=GetCallerIdentity&Version=2011-06-15",
body: '',
credentials: credentials,
credentials: is_credentials_provider ? credentials.credentials : credentials,
expires_in: 60,
headers: {
'X-K8s-Aws-Id' => eks_cluster
Expand Down

0 comments on commit 7c73bc9

Please sign in to comment.