File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -249,18 +249,16 @@ function Set-PrerequisiteOptions {
249
249
Install-Module - Name powershell- yaml - Force
250
250
}
251
251
252
- # Disables Windows Defender realtime scanning if this Windows node is part of a
253
- # test cluster.
254
- #
255
- # ${kube_env} must have already been set.
252
+ # Disables Windows Defender realtime scanning.
253
+ # TODO: remove this workaround once the fix is rolled out the Windows image
254
+ # https://github.com/kubernetes/kubernetes/issues/75148
256
255
function Disable-WindowsDefender {
257
256
# Windows Defender periodically consumes 100% of the CPU, so disable realtime
258
257
# scanning. Uninstalling the Windows Feature will prevent the service from
259
258
# starting after a reboot.
260
259
# TODO(pjh): move this step to image preparation, since we don't want to do a
261
260
# full reboot here.
262
- if ((Test-IsTestCluster ${kube_env} ) -and
263
- ((Get-WindowsFeature - Name ' Windows-Defender' ).Installed)) {
261
+ if ((Get-WindowsFeature - Name ' Windows-Defender' ).Installed) {
264
262
Log- Output " Disabling Windows Defender service"
265
263
Set-MpPreference - DisableRealtimeMonitoring $true
266
264
Uninstall-WindowsFeature - Name ' Windows-Defender'
You can’t perform that action at this time.
0 commit comments