Skip to content

Commit b3a5792

Browse files
[Aks] Migrate from generation to release-2022-10-12 (#19703)
* Update changelog * Add breaking change csv Co-authored-by: wyunchi-ms <[email protected]> Co-authored-by: Yunchi Wang <[email protected]>
1 parent cdad328 commit b3a5792

File tree

10 files changed

+146
-309
lines changed

10 files changed

+146
-309
lines changed

src/Aks/Aks.Autorest/custom/Install-AzAksCliTool.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ Download and install kubectl and kubelogin.
2323
function Install-AzAksCliTool
2424
{
2525
[OutputType([System.Boolean])]
26-
[Alias("Install-AzAksKubectl")]
2726
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
28-
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.CmdletBreakingChangeAttribute("9.0.0", "2022/10/12", ReplacementCmdletName = 'Install-AzAksCliTool')]
2927
param(
3028
[Alias("KubectlInstallDestination")]
3129
[Parameter()]
@@ -155,11 +153,11 @@ Function Install-Kubectl
155153
{
156154
$Destination = [System.IO.Path]::Combine($env:USERPROFILE, ".azure-kubectl")
157155
}
156+
$Destination = Resolve-Path -Path $Destination
158157
If (-not (Test-Path -Path $Destination))
159158
{
160159
New-Item -Path $Destination -ItemType Directory
161160
}
162-
$Destination = Resolve-Path -Path $Destination
163161
If (($Null -Eq $Version) -or ("" -Eq $Version))
164162
{
165163
$url = "$baseUrl/stable.txt"
@@ -249,11 +247,11 @@ Function Install-Kubelogin
249247
{
250248
$Destination = [System.IO.Path]::Combine($env:USERPROFILE, ".azure-kubelogin")
251249
}
250+
$Destination = Resolve-Path -Path $Destination
252251
If (-not (Test-Path -Path $Destination))
253252
{
254253
New-Item -Path $Destination -ItemType Directory
255254
}
256-
$Destination = Resolve-Path -Path $Destination
257255
If (($Null -Eq $Version) -or ("" -Eq $Version))
258256
{
259257
$latestVersionInfo = (Invoke-WebRequest -Uri $latestReleaseUrl).Content | ConvertFrom-Json

src/Aks/Aks.Autorest/docs/Install-AzAksCliTool.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
224224
225225
ALIASES
226226
227-
Install-AzAksKubectl
228-
229227
## RELATED LINKS
230228

0 commit comments

Comments
 (0)