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

AWS – use session.NewSession instead of session.New to #2428

Merged

Conversation

alfredkrohmer
Copy link
Contributor

session.New is deprecated and requires the AWS_SDK_LOAD_CONFIG
environment variable to be set in order to automatically call
AssumeRoleWithWebIdentity when AWS_WEB_IDENTITY_TOKEN_FILE is set
(which is not documented and most likely unintended).

`session.New` is deprecated and requires the `AWS_SDK_LOAD_CONFIG`
environment variable to be set in order to automatically call
`AssumeRoleWithWebIdentity` when `AWS_WEB_IDENTITY_TOKEN_FILE` is set
(which is not documented and most likely unintended).
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 7, 2019
@alfredkrohmer
Copy link
Contributor Author

Original bug report: aws/aws-sdk-go#2828
Issue with cluster-autoscaler: #2358 (comment)

@alfredkrohmer
Copy link
Contributor Author

/assign @Jeffwan

@Jeffwan
Copy link
Member

Jeffwan commented Oct 8, 2019

Thanks for the change. This would be an easy way no matter session.New will be fixed or not. NewSession assumes IRSA role which is expected.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 8, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jeffwan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 8, 2019
@k8s-ci-robot k8s-ci-robot merged commit a258103 into kubernetes:master Oct 8, 2019
k8s-ci-robot added a commit that referenced this pull request Oct 11, 2019
k8s-ci-robot added a commit that referenced this pull request Oct 11, 2019
k8s-ci-robot added a commit that referenced this pull request Oct 11, 2019
k8s-ci-robot added a commit that referenced this pull request Oct 17, 2019
andrewward added a commit to andrewward/cwlogstream_exporter that referenced this pull request Aug 28, 2020
Due to the way the AWS's pod identity webhook provides authentication
tokens to pods, we need to upgrade `aws-sdk-go` as per
https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-minimum-sdk.html
and use replace the deprecated New func with NewSession to properly load the
identity file as detailed in this issue:
kubernetes/autoscaler#2428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants