Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiezhang1997 committed Apr 16, 2024
1 parent 38632fc commit a670680
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 56 deletions.
9 changes: 5 additions & 4 deletions parts/windows/kuberneteswindowssetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -511,8 +516,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+CustomCloud/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -507,8 +512,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+CustomVnet/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+K8S116/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+K8S117/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+K8S118/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+K8S119+CSI/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+K8S119+FIPS/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+K8S119/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+ManagedIdentity/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/agent/testdata/AKSWindows2019+SecurityProfile/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ finally
# $CSEResultFilePath is used to avoid running CSE multiple times
Set-Content -Path $CSEResultFilePath -Value $global:ExitCode -Force
Logs-To-Event -TaskName "AKS.WindowsCSE.cse_main" -TaskMessage "ExitCode: $global:ExitCode. ErrorMessage: $global:ErrorMessage."

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer

# Please not use Write-Log or Logs-To-Events after Stop-Transcript
Stop-Transcript

Expand All @@ -501,8 +506,4 @@ finally
$turncatedErrorMessage = $global:ErrorMessage.Substring(0, [Math]::Min(240 - $errorMessageLength, $global:ErrorMessage.Length))
throw "ExitCode: |$global:ExitCode|, Output: |$($global:ErrorCodeNames[$global:ExitCode])|, Error: |$turncatedErrorMessage|"
}

Write-Log "Start to enable full support of CimFS"
c:\AzureData\windows\StagingTool.exe /enable 44354424 47273241 47273202 48004466 48230524
Postpone-RestartComputer
}
9 changes: 5 additions & 4 deletions pkg/templates/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a670680

Please sign in to comment.