-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] aks create/update: add --vnet-subnet_id validationChenyzh vnet validator #1243
Conversation
If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
|
Tested in docker, expected result received.
|
If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
|
Did not realize "close and comment" will actually close entire PR while Azure DevOps just close the comment, re-open for continuing the review. |
Re-try validation as one of check is expire |
If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
|
add to S165. |
1 similar comment
add to S165. |
@Czhang0727 Hello. I remembered that I merged a same PR. Is that in CLI main repo? |
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. @qwordy please leave your comments and sign off
@myronfanqiu Hi, I already checked in the same update in azure-cli as recommended. The update is already checked in. I added a little bouns as I saw there is a styling warning with an un-necessary return. |
@qwordy, any chance we can merge the change? |
@@ -76,7 +76,7 @@ def load_arguments(self, _): | |||
c.argument('no_ssh_key', options_list=['--no-ssh-key', '-x']) | |||
c.argument('pod_cidr') | |||
c.argument('service_cidr') | |||
c.argument('vnet_subnet_id') | |||
c.argument('vnet_subnet_id', type=str, validator=validate_vnet_subnet_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.
Does it has a help message?
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.
yes it does, it keeps same as it was to be in _help.py
- name: --vnet-subnet-id
type: string
short-summary: The ID of a subnet in an existing VNet into which to deploy the cluster.
merge conflict for check-in |
@qwordy Hi, would it possible to have the file merged and checked in? |
We are very sorry to leave this PR unmerged for a long time. Can you resolve the conflicts again? |
remove tailing space
add line for lint
@qwordy Resolved conflict and verified through the pipeline. |
…validator (Azure#1243) * Adding VNetSubnet Validator, raise Error if we got an invalid resource id * addining valid test case * adding null / empty value test * Format fixing * fixing style issues * remove white space at tail * Update _params.py remove tailing space * Update _params.py add line for lint Co-authored-by: Chenyi Zhang <Chenyi.Zhang@microsoft.com> Co-authored-by: Chenyi Zhang <chenyzh@microsoft.com> Co-authored-by: Feiyue Yu <fey@microsoft.com>
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally?For new extensions: