trying a fix for self hosted agent

This commit is contained in:
Atharva Mulmuley
2021-04-29 13:51:07 +05:30
parent d621ae1ce7
commit f0fc3cfe22
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ function getArcKubeconfig() {
}
else {
console.log('using spn method for authenticating to arc cluster.');
child_process_1.spawn('az', ['connectedk8s', 'proxy', '-n', clusterName, '-g', resourceGroupName, '-f', kubeconfigPath], {
child_process_1.spawn('az.cmd', ['connectedk8s', 'proxy', '-n', clusterName, '-g', resourceGroupName, '-f', kubeconfigPath], {
detached: true,
stdio: 'ignore'
}).unref();

View File

@ -83,7 +83,7 @@ export async function getArcKubeconfig(): Promise<string> {
}).unref();
} else{
console.log('using spn method for authenticating to arc cluster.')
spawn('az',['connectedk8s','proxy','-n',clusterName,'-g',resourceGroupName,'-f',kubeconfigPath], {
spawn('az.cmd',['connectedk8s','proxy','-n',clusterName,'-g',resourceGroupName,'-f',kubeconfigPath], {
detached: true,
stdio: 'ignore'
}).unref();