Skip to content

release-2021-11-02 #16284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Kubernetes Configuration] Move KubernetesConfiguration to release-20…
…21-11-02 (#16257)

* Move KubernetesConfiguration to release-2021-11-02

* Update ChangeLog.md

Update some message

* Update ChangeLog.md

* Update src/KubernetesConfiguration/custom/Remove-AzKubernetesExtension.ps1

* Update src/KubernetesConfiguration/exports/Remove-AzKubernetesExtension.ps1

* Update src/KubernetesConfiguration/help/Remove-AzKubernetesExtension.md

* Update src/KubernetesConfiguration/help/New-AzKubernetesExtension.md

* Update src/KubernetesConfiguration/custom/New-AzKubernetesExtension.ps1

* Update src/KubernetesConfiguration/exports/New-AzKubernetesExtension.ps1

* Update src/KubernetesConfiguration/custom/Get-AzKubernetesExtension.ps1

* Update src/KubernetesConfiguration/exports/Get-AzKubernetesExtension.ps1

* Update src/KubernetesConfiguration/help/Get-AzKubernetesExtension.md

* Update src/KubernetesConfiguration/ChangeLog.md

Co-authored-by: azure-powershell-bot <[email protected]>
Co-authored-by: Beisi Zhou <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2021
commit 071db49609d97e100e1a704bc472e068bdb57030
662 changes: 626 additions & 36 deletions src/KubernetesConfiguration/Az.KubernetesConfiguration.format.ps1xml

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions src/KubernetesConfiguration/Az.KubernetesConfiguration.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 5/20/2021
# Generated on: 10/28/2021
#

@{
Expand Down Expand Up @@ -45,7 +45,7 @@ PowerShellVersion = '5.1'
DotNetFrameworkVersion = '4.7.2'

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# CLRVersion = ''
# ClrVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''
Expand All @@ -69,8 +69,10 @@ FormatsToProcess = './Az.KubernetesConfiguration.format.ps1xml'
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Get-AzKubernetesConfiguration', 'New-AzKubernetesConfiguration',
'Remove-AzKubernetesConfiguration'
FunctionsToExport = 'Get-AzKubernetesConfiguration', 'Get-AzKubernetesExtension',
'New-AzKubernetesConfiguration', 'New-AzKubernetesExtension',
'Remove-AzKubernetesConfiguration', 'Remove-AzKubernetesExtension',
'Update-AzKubernetesExtension'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
Expand All @@ -79,7 +81,10 @@ CmdletsToExport = @()
# VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = '*'
AliasesToExport = 'Get-AzK8sConfiguration', 'Get-AzK8sExtension',
'New-AzK8sConfiguration', 'New-AzK8sExtension',
'Remove-AzK8sConfiguration', 'Remove-AzK8sExtension',
'Update-AzK8sExtension', '*'

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand Down Expand Up @@ -108,7 +113,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Added SshKnownHosts and ConfigurationProtectedSetting to New-AzKubernetesConfiguration.'
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''
Expand Down
26 changes: 14 additions & 12 deletions src/KubernetesConfiguration/Az.KubernetesConfiguration.psm1
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# region Generated
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
# Load required Az.Accounts module
$accountsName = 'Az.Accounts'
Expand All @@ -32,7 +33,7 @@
}

if(-not $accountsModule) {
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
} elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Expand All @@ -50,6 +51,7 @@
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad


# Tweaks the pipeline per call
$instance.OnNewRequest = $VTable.OnNewRequest

Expand Down
2 changes: 2 additions & 0 deletions src/KubernetesConfiguration/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Onboarded cmdlets `New/Update/Get/Remove-AzKubernetesExtension` and `New/Get/Remove-AzKubernetesConfiguration`
* Removed the plural form of parameter HelmOperatorChartValues, OperatorParameters and SshKnownHosts in `New-AzKubernetesConfiguration`

## Version 0.4.0
* Added SshKnownHosts and ConfigurationProtectedSetting to New-AzKubernetesConfiguration.
Expand Down
116 changes: 86 additions & 30 deletions src/KubernetesConfiguration/KubernetesConfiguration.sln
Original file line number Diff line number Diff line change
@@ -1,48 +1,104 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{3093A1F1-31CD-4563-BE4B-B17AA4207692}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{9D93BC23-8AF2-4365-9C42-5394C6EA9869}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{968C92F4-7A13-4E28-8997-538F2F54823B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.KubernetesConfiguration", "Az.KubernetesConfiguration.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.KubernetesConfiguration", "Az.KubernetesConfiguration.csproj", "{59382982-6677-4EEC-8AF4-141B3BDA3DBA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030}
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x64.ActiveCfg = Debug|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x64.Build.0 = Debug|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x86.ActiveCfg = Debug|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Debug|x86.Build.0 = Debug|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|Any CPU.Build.0 = Release|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x64.ActiveCfg = Release|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x64.Build.0 = Release|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x86.ActiveCfg = Release|Any CPU
{3093A1F1-31CD-4563-BE4B-B17AA4207692}.Release|x86.Build.0 = Release|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x64.ActiveCfg = Debug|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x64.Build.0 = Debug|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x86.ActiveCfg = Debug|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Debug|x86.Build.0 = Debug|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|Any CPU.Build.0 = Release|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x64.ActiveCfg = Release|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x64.Build.0 = Release|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x86.ActiveCfg = Release|Any CPU
{8EFA7A0C-CF28-4959-A46D-112BB2FA1FB2}.Release|x86.Build.0 = Release|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x64.ActiveCfg = Debug|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x64.Build.0 = Debug|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x86.ActiveCfg = Debug|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Debug|x86.Build.0 = Debug|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|Any CPU.Build.0 = Release|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x64.ActiveCfg = Release|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x64.Build.0 = Release|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x86.ActiveCfg = Release|Any CPU
{9D93BC23-8AF2-4365-9C42-5394C6EA9869}.Release|x86.Build.0 = Release|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x64.ActiveCfg = Debug|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x64.Build.0 = Debug|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x86.ActiveCfg = Debug|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Debug|x86.Build.0 = Debug|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Release|Any CPU.Build.0 = Release|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x64.ActiveCfg = Release|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x64.Build.0 = Release|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x86.ActiveCfg = Release|Any CPU
{968C92F4-7A13-4E28-8997-538F2F54823B}.Release|x86.Build.0 = Release|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x64.ActiveCfg = Debug|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x64.Build.0 = Debug|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x86.ActiveCfg = Debug|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Debug|x86.Build.0 = Debug|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|Any CPU.Build.0 = Release|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x64.ActiveCfg = Release|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x64.Build.0 = Release|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x86.ActiveCfg = Release|Any CPU
{2FA4E05B-5AF3-426E-98CE-EDF06B56CFBA}.Release|x86.Build.0 = Release|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x64.ActiveCfg = Debug|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x64.Build.0 = Debug|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x86.ActiveCfg = Debug|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Debug|x86.Build.0 = Debug|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|Any CPU.Build.0 = Release|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x64.ActiveCfg = Release|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x64.Build.0 = Release|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x86.ActiveCfg = Release|Any CPU
{59382982-6677-4EEC-8AF4-141B3BDA3DBA}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
16 changes: 10 additions & 6 deletions src/KubernetesConfiguration/build-module.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand All @@ -10,6 +9,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
$ErrorActionPreference = 'Stop'
Expand Down Expand Up @@ -104,13 +105,13 @@ if(Test-Path $customPsm1) {

$exportsFolder = Join-Path $PSScriptRoot 'exports'
if(Test-Path $exportsFolder) {
$null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
$null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
}
$null = New-Item -ItemType Directory -Force -Path $exportsFolder

$internalFolder = Join-Path $PSScriptRoot 'internal'
if(Test-Path $internalFolder) {
$null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
$null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
}
$null = New-Item -ItemType Directory -Force -Path $internalFolder

Expand All @@ -122,7 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder

Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
$modelCmdlets = @()
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') -Models $modelCmdlets
if ($modelCmdlets.Count -gt 0) {
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
CreateModelCmdlet($modelCmdlets)
}

if($NoDocs) {
Write-Host -ForegroundColor Green 'Creating exports...'
Expand All @@ -132,7 +136,7 @@ if($NoDocs) {
$moduleDescription = 'Microsoft Azure PowerShell: KubernetesConfiguration cmdlets'
$docsFolder = Join-Path $PSScriptRoot 'docs'
if(Test-Path $docsFolder) {
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
}
$null = New-Item -ItemType Directory -Force -Path $docsFolder
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
Expand Down
Loading