-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[AKS] az aks create/update: Add command to create/update a network isolated cluster
#31095
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
[AKS] az aks create/update: Add command to create/update a network isolated cluster
#31095
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @bingosummer, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks create | cmd aks create added parameter bootstrap_artifact_source |
||
| aks create | cmd aks create added parameter bootstrap_container_registry_resource_id |
||
| aks create | cmd aks create update parameter outbound_type: updated property choices from ['loadBalancer', 'managedNATGateway', 'userAssignedNATGateway', 'userDefinedRouting'] to ['loadBalancer', 'managedNATGateway', 'none', 'userAssignedNATGateway', 'userDefinedRouting'] |
||
| aks update | cmd aks update added parameter bootstrap_artifact_source |
||
| aks update | cmd aks update added parameter bootstrap_container_registry_resource_id |
||
| aks update | cmd aks update update parameter outbound_type: updated property choices from ['loadBalancer', 'managedNATGateway', 'userAssignedNATGateway', 'userDefinedRouting'] to ['loadBalancer', 'managedNATGateway', 'none', 'userAssignedNATGateway', 'userDefinedRouting'] |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
FumingZhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Queued live test to validate the change.
- test_aks_network_isolated_cluster
src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py
Outdated
Show resolved
Hide resolved
FumingZhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, seems a UT test_construct_mc_profile_default failed with error
self.assertEqual(dec_mc_1, ground_truth_mc_1)E AssertionError: <azur[32 chars]_01.models._models_py3.ManagedCluster object at 0x7f30caec7700> != <azur[32 chars]_01.models._models_py3.ManagedCluster object at 0x7f30caec7c70>
src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py
Show resolved
Hide resolved
98fd8d2 to
65e35be
Compare
https://dev.azure.com/msazure/CloudNativeCompute/_build/results?buildId=118814558&view=results passed |
65e35be to
4f8e6ff
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
…isolated cluster
4f8e6ff to
5bfda73
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
FumingZhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…isolated cluster (Azure#31095)
| container_registry_resource_id = namespace.bootstrap_container_registry_resource_id | ||
| if container_registry_resource_id is None or container_registry_resource_id == '': | ||
| return | ||
| from msrestazure.tools import is_valid_resource_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msrestazure is deprecated. This import is migrated to azure.mgmt.core.tools.is_valid_resource_id by #31603.

Related command
az aks create/updateDescription
This PR is to add command to create/update a network isolated cluster.
The newly added parameters are bootstrap profile and outbound type none.
bootstrap_artifact_sourcebootstrap_container_registry_resource_idnoneforoutbound_typeTesting Guide
History Notes
[AKS]
az aks create/update: Add--bootstrap-artifact-sourceparameter to configure artifact source when bootstraping the cluster[AKS]
az aks create/update: Add--bootstrap-container-registry-resource-idparameter to configure container registry resource ID[AKS]
az aks create/update: Add new optionnonefor--outbound-typeparameterThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.