Skip to content
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

add dnc rp cli commands #3433

Merged
merged 10 commits into from
Jun 10, 2021
Merged

add dnc rp cli commands #3433

merged 10 commits into from
Jun 10, 2021

Conversation

aegal
Copy link
Contributor

@aegal aegal commented May 26, 2021


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@aegal aegal changed the title add initial dnc files add dnc rp cli commands May 26, 2021
@yonzhan yonzhan requested a review from kairu-ms May 26, 2021 03:22
@yonzhan yonzhan added this to the S188 milestone May 26, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented May 26, 2021

dnc

@yonzhan yonzhan requested review from 00Kai0 and jsntcy June 2, 2021 21:51
src/dnc/azext_dnc/generated/commands.py Outdated Show resolved Hide resolved
src/dnc/azext_dnc/generated/commands.py Outdated Show resolved Hide resolved
src/dnc/azext_dnc/generated/commands.py Outdated Show resolved Hide resolved
src/dnc/azext_dnc/generated/commands.py Outdated Show resolved Hide resolved
src/dnc/azext_dnc/generated/commands.py Outdated Show resolved Hide resolved
src/dnc/azext_dnc/generated/commands.py Outdated Show resolved Hide resolved
src/dnc/azext_dnc/generated/commands.py Outdated Show resolved Hide resolved
src/dnc/azext_dnc/generated/custom.py Outdated Show resolved Hide resolved
@@ -67,8 +61,8 @@ def load_arguments(self, _):
c.argument('cluster_root_ca', type=str, help='RootCA certificate of kubernetes cluster base64 encoded')
c.argument('api_server_endpoint', type=str, help='K8s APIServer url. Either one of apiServerEndpoint or '
'privateLinkResourceId can be specified')
c.argument('private_link_resource_id', type=str, help='private link arm resource id. Either one of '
'apiServerEndpoint or privateLinkResourceId can be specified')
c.argument('private_link_resource_id', options_list=['--privlinkresourceid'], type=str, help='private link arm '
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you split it by ‘-‘

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry I am not following, I currently have it like this - what split are we trying to accomplish?

  - where:
        group: .*
        parameter: privateLinkResourceId
    alias:
        - privLinkResourceId

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try the following configuration?

  - where:
        group: .*
        parameter: privateLinkResourceId
    alias:
        - priv_link_resource_id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

g.custom_show_command('show', 'dnc_delegated_subnet_service_show')
g.custom_command('create', 'dnc_delegated_subnet_service_create', supports_no_wait=True)
g.custom_command('delete', 'dnc_delegated_subnet_service_delete', supports_no_wait=True, confirmation=True)
g.custom_command('patch-detail', 'dnc_delegated_subnet_service_patch_detail', supports_no_wait=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use "update" instead of "patch-detail"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@aegal aegal requested a review from kairu-ms June 9, 2021 00:25
@kairu-ms
Copy link
Contributor

kairu-ms commented Jun 9, 2021

@aegal Please rebase your branch to fix ci issues.

@kairu-ms kairu-ms merged commit 9f0aa09 into Azure:master Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants