-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Ensure object returned by volume getCloudProvider incorporates cloud config #23769
Ensure object returned by volume getCloudProvider incorporates cloud config #23769
Conversation
Removing label |
Labelling this PR as size/M |
GCE e2e build/test passed for commit e95dd021bca7c6b1a357b492badac3b364b17b67. |
/cc @justinsb since this also makes some minor changes to the AWS cloud provider. |
} | ||
|
||
cloudProvider := plugin.host.GetCloudProvider() | ||
awsCloudProvider, ok := cloudProvider.(*aws.AWSCloud) |
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.
I'm seeing weird indentation here.. gofmt needed?
Needs gofmt (CI picked it up too - I thought I was going crazy!). But changes LGTM on the AWS side. I also like that the provider is now a real singleton - I wonder if that was causing issues in the past for the AWS volume mount cache (before I removed it in 1.2) |
@saad-ali can you please get the gofmt and build failures fixed, submit this, cherrypick it to 1.2 and get @david-mcmahon to signoff and start the 1.2.2 build please? @a-robinson is GKE oncall this week. After that's done, let's start a postmortem to figure out what happened and how we can improve the process so similar issues are less likely to re-occur? |
Yep, will do. |
e95dd02
to
e7b14e7
Compare
PR changed after LGTM, removing LGTM. |
GCE e2e build/test passed for commit e7b14e7. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit e7b14e7. |
LGTM |
Verified dynamic provision on GKE works with this PR:
|
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit e7b14e7. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit e7b14e7. |
Automatic merge from submit-queue |
@saad-ali: I tried to create an automated cherry-pick for this on
Please create a cherry-pick ASAP if you want this in 1.2.2 or the release train will leave without you. |
Working on it. |
Commit found in the "release-1.2" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…ck-of-#21140-kubernetes#23769-upstream-release-1.2 Automated cherry pick of kubernetes#21140 kubernetes#23769 upstream release 1.2
…ck-of-#21140-kubernetes#23769-upstream-release-1.2 Automated cherry pick of kubernetes#21140 kubernetes#23769 upstream release 1.2
This PR addresses #23517.
Problem
The existing GCE PD and AWS EBS volume plugin code were fetching cloud provider without specifying a cloud config:
cloudprovider.GetCloudProvider("gce", nil)
This caused the cloud provider to use default auth mechanism, which is not acceptable for the provisioning controller running on GKE master.
Fix
This PR does the following:
Thanks to @cjcullen for debugging and finding the root cause! 👍
This should be cherry-picked into the v1.2 branch for the next release.