Skip to content

Commit

Permalink
Merge pull request #2010 from jsturtevant/kubelet-logs
Browse files Browse the repository at this point in the history
Capture NSSM log output files in e2e for windows
  • Loading branch information
k8s-ci-robot authored Jan 28, 2022
2 parents b5c7a99 + 364e0f0 commit 8a50242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/azure_logcollector.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build e2e
// +build e2e

/*
Expand Down Expand Up @@ -250,7 +251,7 @@ func windowsK8sLogs(execToPathFn func(outputFileName string, command string, arg
),
execToPathFn(
"kubelet.log",
`Get-ChildItem "C:\\var\\log\\kubelet\\" | ForEach-Object { if ($_ -match 'log.INFO') { write-output "$_";cat "c:\\var\\log\\kubelet\\$_" } }`,
`Get-ChildItem "C:\\var\\log\\kubelet\\" | ForEach-Object { if ($_ -match 'log.INFO|err.*.log') { write-output "$_";cat "c:\\var\\log\\kubelet\\$_" } }`,
),
execToPathFn(
"cni.log",
Expand Down

0 comments on commit 8a50242

Please sign in to comment.