mirror of
https://github.com/Azure/k8s-set-context.git
synced 2026-06-25 16:29:27 +08:00
removing cli extension if it already exists
This commit is contained in:
@@ -67,6 +67,7 @@ export async function getArcKubeconfig(): Promise<string> {
|
||||
}
|
||||
await az_login.main();
|
||||
await az_login.executeAzCliCommand(`account show`, false);
|
||||
await az_login.executeAzCliCommand(`extension remove -n connectedk8s`, false);
|
||||
await az_login.executeAzCliCommand(`extension add -n connectedk8s`, false);
|
||||
await az_login.executeAzCliCommand(`extension list`, false);
|
||||
const runnerTempDirectory = process.env['RUNNER_TEMP']; // Using process.env until the core libs are updated
|
||||
|
||||
Reference in New Issue
Block a user