-
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
Update photon controller go SDK in vendor code. #43108
Update photon controller go SDK in vendor code. #43108
Conversation
2f11b76
to
1439ea2
Compare
Please edit the release note section to something stating the photon versions it's compatible with. Do you expect to force every k8s cluster running on photon to upgrade? I'm not against merging this for 1.6 but that's probably not the bulk of the problem. It seems like a bug in photon if they've broken older clients? Since this is changing a library that isn't used in any of the continuous testing (that I'm aware of) I think it's fine to merge, it shouldn't break anything--however it's on you @luomiao to have tested that the photon integration still works after this :) @ethernetdan is apparently making calls about in 1.6 or not. @ethernetdan, can you add the 1.6 milestone if you don't see anything wrong with the above reasoning? Thanks. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lavalamp, luomiao
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@lavalamp Hi Daniel, thanks for evaluating the situation. |
|
||
var ( | ||
secur32_dll = syscall.NewLazyDLL("secur32.dll") | ||
initSecurityInterface = secur32_dll.NewProc("InitSecurityInterfaceW") |
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.
is this dll and proc guaranteed to exist on all supported windows platforms? (since you're calling it in the init()
function, a panic would prevent the binary from starting, even if photon was never used
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.
Hi Jordan. Thanks for your review. I have talked to Photon team who's maintaining this go sdk. We think this usage should be safe for 1) this will only be built on Windows and 2) this refers to standard Windows stuff. Please let us know if you still have concern about this part of code.
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.
Thanks for following up. If it's a standard lib on all versions of windows we support, that's seems ok, I just wanted to check.
Automatic merge from submit-queue |
What this PR does / why we need it:
Update photon controller go SDK in vendor code.
Which issue this PR fixes:
fixes ##43042
Special notes for your reviewer:
Can we mark this PR as bug fix and with 1.6 milestone?
Since photon controller is using a new version of this go SDK. Without this change, the current k8s will break with latest released photon controller. Thanks.
Release note:
Compatible with Photon Controller v1.1.1 release.