k3s/vendor
Kubernetes Submit Queue 786c69dbc9
Merge pull request #55496 from JiangtianLi/jiangtli-fixservercore
Automatic merge from submit-queue (batch tested with PRs 55642, 55897, 55835, 55496, 55313). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix issue #55031 to remove dependence on package lxn/win

**What this PR does / why we need it**:
This PR fixes issue #55031 where kubelet.exe crashes on Windows Server Core. The root cause is that kubelet.exe depends on package lxn/win pdh and kernel32 wrapper for node metrics. However, opengl32.dll is not available in Server Core and lxn/win requires the presence of all win32 DLLs. 

This PR uses a slim win32 package JeffAshton/win_pdh since most win32 APIs needed are PDH API. Also this PR makes own implementation of GetPhysicallyInstalledSystemMemory until golang Windows syscall has it or lxn/win fixes opengl32 issue. Also this PR modifies the way to get Windows version.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #55031

**Special notes for your reviewer**:

**Release note**:

```release-note

```
/sig windows
/sig node
2017-11-18 10:46:38 -08:00
..
bitbucket.org update BUILD files 2017-10-15 18:18:13 -07:00
cloud.google.com/go update BUILD files 2017-10-15 18:18:13 -07:00
github.com Merge pull request #55496 from JiangtianLi/jiangtli-fixservercore 2017-11-18 10:46:38 -08:00
go4.org update BUILD files 2017-10-15 18:18:13 -07:00
golang.org/x Update cAdvisor. 2017-11-10 14:54:28 -08:00
google.golang.org Remove Google cloudkms dependency. 2017-10-30 00:53:06 +05:30
gopkg.in update BUILD files 2017-10-15 18:18:13 -07:00
k8s.io bump(k8s.io/gengo): b58fc7edb82e0c6ffc9b8aef61813c7261b785d4 2017-11-10 18:25:26 +01:00
vbom.ml/util update BUILD files 2017-10-15 18:18:13 -07:00
BUILD Merge pull request #55496 from JiangtianLi/jiangtli-fixservercore 2017-11-18 10:46:38 -08:00