File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -159,4 +159,4 @@ export WINDOWS_BOOTSTRAP_KUBECONFIG_FILE="${WINDOWS_K8S_DIR}\kubelet.bootstrap-k
159
159
# Path for kube-proxy kubeconfig file on Windows nodes.
160
160
export WINDOWS_KUBEPROXY_KUBECONFIG_FILE=" ${WINDOWS_K8S_DIR} \kubeproxy.kubeconfig"
161
161
# Pause container image for Windows container.
162
- export WINDOWS_INFRA_CONTAINER=" gcr.io/gke-release/pause-win:1.1 .0"
162
+ export WINDOWS_INFRA_CONTAINER=" gcr.io/gke-release/pause-win:1.2 .0"
Original file line number Diff line number Diff line change @@ -88,11 +88,11 @@ function set-linux-node-image() {
88
88
function set-windows-node-image() {
89
89
WINDOWS_NODE_IMAGE_PROJECT=" windows-cloud"
90
90
if [[ " ${WINDOWS_NODE_OS_DISTRIBUTION} " == " win2019" ]]; then
91
- WINDOWS_NODE_IMAGE=" windows-server-2019-dc-core-for-containers-v20200114 "
91
+ WINDOWS_NODE_IMAGE=" windows-server-2019-dc-core-for-containers-v20200310 "
92
92
elif [[ " ${WINDOWS_NODE_OS_DISTRIBUTION} " == " win1909" ]]; then
93
- WINDOWS_NODE_IMAGE=" windows-server-1909-dc-core-for-containers-v20200114 "
93
+ WINDOWS_NODE_IMAGE=" windows-server-1909-dc-core-for-containers-v20200310 "
94
94
elif [[ " ${WINDOWS_NODE_OS_DISTRIBUTION} " == " win1809" ]]; then
95
- WINDOWS_NODE_IMAGE=" windows-server-1809-dc-core-for-containers-v20200114 "
95
+ WINDOWS_NODE_IMAGE=" windows-server-1809-dc-core-for-containers-v20200310 "
96
96
else
97
97
echo " Unknown WINDOWS_NODE_OS_DISTRIBUTION ${WINDOWS_NODE_OS_DISTRIBUTION} " >&2
98
98
exit 1
Original file line number Diff line number Diff line change @@ -135,11 +135,24 @@ function Add_GceMetadataServerRoute {
135
135
}
136
136
}
137
137
138
+ # Returns a PowerShell object representing the Windows version.
139
+ function Get_WindowsVersion {
140
+ # Unlike checking `[System.Environment]::OSVersion.Version`, this long-winded
141
+ # approach gets the OS revision/patch number correctly
142
+ # (https://superuser.com/a/1160428/652018).
143
+ $win_ver = New-Object - TypeName PSObject
144
+ $win_ver | Add-Member - MemberType NoteProperty - Name Major - Value $ (Get-ItemProperty - Path ' Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' CurrentMajorVersionNumber).CurrentMajorVersionNumber
145
+ $win_ver | Add-Member - MemberType NoteProperty - Name Minor - Value $ (Get-ItemProperty - Path ' Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' CurrentMinorVersionNumber).CurrentMinorVersionNumber
146
+ $win_ver | Add-Member - MemberType NoteProperty - Name Build - Value $ (Get-ItemProperty - Path ' Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' CurrentBuild).CurrentBuild
147
+ $win_ver | Add-Member - MemberType NoteProperty - Name Revision - Value $ (Get-ItemProperty - Path ' Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' UBR).UBR
148
+ return $win_ver
149
+ }
150
+
138
151
# Writes debugging information, such as Windows version and patch info, to the
139
152
# console.
140
153
function Dump-DebugInfoToConsole {
141
154
Try {
142
- $version = " $ ( [ System.Environment ]::OSVersion.Version | Out-String ) "
155
+ $version = Get_WindowsVersion | Out-String
143
156
$hotfixes = " $ ( Get-Hotfix | Out-String ) "
144
157
$image = " $ ( Get-InstanceMetadata ' image' | Out-String ) "
145
158
Log- Output " Windows version:`n $version "
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ spec:
358
358
spec:
359
359
containers:
360
360
- name: pause-win
361
- image: gcr.io/gke-release/pause-win:1.1 .0
361
+ image: gcr.io/gke-release/pause-win:1.2 .0
362
362
nodeSelector:
363
363
kubernetes.io/os: windows
364
364
tolerations:
You can’t perform that action at this time.
0 commit comments