Skip to content

Commit 7ae1778

Browse files
authored
Use the right path for falling back to nssm (#511)
* Use the right path for falling back to nssm * Address the comment
1 parent 580d383 commit 7ae1778

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

capz/templates/gmsa-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
& $scriptPath
109109
} else {
110110
Write-Host "RestartKubelet.ps1 not found. Running fallback command..."
111-
nssm set kubelet start SERVICE_AUTO_START
111+
& "$env:SYSTEMDRIVE\k\nssm.exe" set kubelet start SERVICE_AUTO_START
112112
}
113113
path: C:/KubeletRestart_nssm_sc.ps1
114114
permissions: "0744"

capz/templates/gmsa-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
& $scriptPath
109109
} else {
110110
Write-Host "RestartKubelet.ps1 not found. Running fallback command..."
111-
nssm set kubelet start SERVICE_AUTO_START
111+
& "$env:SYSTEMDRIVE\k\nssm.exe" set kubelet start SERVICE_AUTO_START
112112
}
113113
path: C:/KubeletRestart_nssm_sc.ps1
114114
permissions: "0744"

capz/templates/shared-image-gallery-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
& $scriptPath
109109
} else {
110110
Write-Host "RestartKubelet.ps1 not found. Running fallback command..."
111-
nssm set kubelet start SERVICE_AUTO_START
111+
& "$env:SYSTEMDRIVE\k\nssm.exe" set kubelet start SERVICE_AUTO_START
112112
}
113113
path: C:/KubeletRestart_nssm_sc.ps1
114114
permissions: "0744"

capz/templates/windows-base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ spec:
109109
& $scriptPath
110110
} else {
111111
Write-Host "RestartKubelet.ps1 not found. Running fallback command..."
112-
nssm set kubelet start SERVICE_AUTO_START
112+
& "$env:SYSTEMDRIVE\k\nssm.exe" set kubelet start SERVICE_AUTO_START
113113
}
114114
path: C:/KubeletRestart_nssm_sc.ps1
115115
permissions: "0744"

capz/templates/windows-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
& $scriptPath
109109
} else {
110110
Write-Host "RestartKubelet.ps1 not found. Running fallback command..."
111-
nssm set kubelet start SERVICE_AUTO_START
111+
& "$env:SYSTEMDRIVE\k\nssm.exe" set kubelet start SERVICE_AUTO_START
112112
}
113113
path: C:/KubeletRestart_nssm_sc.ps1
114114
permissions: "0744"

capz/templates/windows-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
& $scriptPath
109109
} else {
110110
Write-Host "RestartKubelet.ps1 not found. Running fallback command..."
111-
nssm set kubelet start SERVICE_AUTO_START
111+
& "$env:SYSTEMDRIVE\k\nssm.exe" set kubelet start SERVICE_AUTO_START
112112
}
113113
path: C:/KubeletRestart_nssm_sc.ps1
114114
permissions: "0744"

0 commit comments

Comments
 (0)