File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ try {
100
100
Dump- DebugInfoToConsole
101
101
Set-PrerequisiteOptions
102
102
$kube_env = Fetch- KubeEnv
103
- Disable-WindowsDefender
104
103
105
104
if (Test-IsTestCluster $kube_env ) {
106
105
Log- Output ' Test cluster detected, installing OpenSSH.'
Original file line number Diff line number Diff line change @@ -244,22 +244,6 @@ function Set-PrerequisiteOptions {
244
244
Install-Module - Name powershell- yaml - Force
245
245
}
246
246
247
- # Disables Windows Defender realtime scanning.
248
- # TODO: remove this workaround once the fix is rolled out the Windows image
249
- # https://github.com/kubernetes/kubernetes/issues/75148
250
- function Disable-WindowsDefender {
251
- # Windows Defender periodically consumes 100% of the CPU, so disable realtime
252
- # scanning. Uninstalling the Windows Feature will prevent the service from
253
- # starting after a reboot.
254
- # TODO(pjh): move this step to image preparation, since we don't want to do a
255
- # full reboot here.
256
- if ((Get-WindowsFeature - Name ' Windows-Defender' ).Installed) {
257
- Log- Output " Disabling Windows Defender service"
258
- Set-MpPreference - DisableRealtimeMonitoring $true
259
- Uninstall-WindowsFeature - Name ' Windows-Defender'
260
- }
261
- }
262
-
263
247
# Creates directories where other functions in this module will read and write
264
248
# data.
265
249
# Note: C:\tmp is required for running certain kubernetes tests.
You can’t perform that action at this time.
0 commit comments