Skip to content

Commit 70aafa5

Browse files
fix: [WIN-NPM] change .exe name and set PATH for containerd issue (#1838)
1 parent 2e211ef commit 70aafa5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

npm/examples/windows/azure-npm.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
'.\setkubeconfigpath.ps1',
9191
";",
9292
"powershell.exe",
93-
'.\npm.exe',
93+
'.\azure-npm.exe',
9494
"start",
9595
'--kubeconfig=.\kubeconfig',
9696
]
@@ -108,6 +108,8 @@ spec:
108108
fieldPath: spec.nodeName
109109
- name: NPM_CONFIG
110110
value: .\\etc\\azure-npm\\azure-npm.json
111+
- name: PATH
112+
value: '%CONTAINER_SANDBOX_MOUNT_POINT%\Windows\System32\WindowsPowershell\v1.0\'
111113
volumeMounts:
112114
- name: azure-npm-config
113115
mountPath: .\\etc\\azure-npm

0 commit comments

Comments
 (0)