trying a fix for self hosted agent
This commit is contained in:
@ -88,7 +88,7 @@ function getArcKubeconfig() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log('using spn method for authenticating to arc cluster.');
|
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,
|
detached: true,
|
||||||
stdio: 'ignore'
|
stdio: 'ignore'
|
||||||
}).unref();
|
}).unref();
|
||||||
|
@ -83,7 +83,7 @@ export async function getArcKubeconfig(): Promise<string> {
|
|||||||
}).unref();
|
}).unref();
|
||||||
} else{
|
} else{
|
||||||
console.log('using spn method for authenticating to arc cluster.')
|
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,
|
detached: true,
|
||||||
stdio: 'ignore'
|
stdio: 'ignore'
|
||||||
}).unref();
|
}).unref();
|
||||||
|
Reference in New Issue
Block a user