Skip to content

Commit

Permalink
Merge pull request #2878 from mrhoads/pr-aksee-kubectl-fix
Browse files Browse the repository at this point in the history
add var for KUBECTL_CLIENT_PATH
  • Loading branch information
dkirby-ms authored Dec 10, 2024
2 parents 32230f5 + 52ac39f commit e96af90
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ Write-Host "`n"
Write-Host "About to silently install AKS Edge Essentials, this will take a few minutes." -ForegroundColor Green
Write-Host "`n"

Write-Host "`n"
Write-Host "Setting kubectl environment variable" -ForegroundColor Green
Write-Host "`n"

[System.Environment]::SetEnvironmentVariable('KUBECTL_CLIENT_PATH', 'C:\Program Files\AksEdge\kubectl\kubectl.exe', [System.EnvironmentVariableTarget]::Machine)


try {
function download2() { $ProgressPreference = "SilentlyContinue"; Invoke-WebRequest -Uri $url -OutFile $installDir\$zipFile }
download2
Expand Down

0 comments on commit e96af90

Please sign in to comment.