Skip to content

Commit

Permalink
chore: clean up unusedGet-KubeBinaries
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiezhang1997 committed Jan 26, 2024
1 parent a05c697 commit 38fb1e8
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 142 deletions.
2 changes: 0 additions & 2 deletions .pipelines/e2e-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pr:
- 'e2e/windows/*'
- 'parts/windows/*'
- 'staging/cse/windows/*'
exclude:
- 'vhdbuilder/*'

# Use variable group "ab-windows-ms-tenant" and link it to the pipeline "Agentbaker Windows E2E"

Expand Down
11 changes: 1 addition & 10 deletions parts/windows/kuberneteswindowssetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -468,7 +459,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+CustomCloud/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -464,7 +455,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+CustomVnet/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+K8S116/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+K8S117/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+K8S118/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+K8S119+CSI/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+K8S119+FIPS/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+K8S119/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+ManagedIdentity/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 deletions pkg/agent/testdata/AKSWindows2019+SecurityProfile/CustomData
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,6 @@ try
Write-Log "Download kubelet binaries and unzip"
Get-KubePackage -KubeBinariesSASURL $global:KubeBinariesPackageSASURL

# This overwrites the binaries that are downloaded from the custom packge with binaries.
# The custom package has a few files that are necessary for future steps (nssm.exe)
# this is a temporary work around to get the binaries until we depreciate
# custom package and nssm.exe as defined in aks-engine#3851.
if ($global:WindowsKubeBinariesURL){
Write-Log "Overwriting kube node binaries from $global:WindowsKubeBinariesURL"
Get-KubeBinaries -KubeBinariesURL $global:WindowsKubeBinariesURL
}

Write-Log "Installing ContainerD"
$cniBinPath = $global:AzureCNIBinDir
$cniConfigPath = $global:AzureCNIConfDir
Expand Down Expand Up @@ -458,7 +449,7 @@ try

if (Test-Path $CacheDir)
{
Write-Log "Removing aks-engine bits cache directory"
Write-Log "Removing aks cache directory"
Remove-Item $CacheDir -Recurse -Force
}

Expand Down
11 changes: 1 addition & 10 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 38fb1e8

Please sign in to comment.