-
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
[Spring] add --deployment-name for app create #5740
Conversation
Spring |
src/spring/azext_spring/_params.py
Outdated
@@ -268,6 +268,8 @@ def load_arguments(self, _): | |||
help='A json file path for the persistent storages to be mounted to the app') | |||
c.argument('loaded_public_certificate_file', options_list=['--loaded-public-certificate-file', '-f'], type=str, | |||
help='A json file path indicates the certificates which would be loaded to app') | |||
c.argument('deployment_name', type=str, | |||
help='Name of the active deployment. Deployment named "default" will be created if this argument not provided', validator=validate_name) |
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.
We should use the named argument default="default"
to set the default value. With this we don't need to highlight it in the help text.
Check the --sku
argument for reference. In the help output, it shows:
--sku : Name of SKU. Enterprise is still in
Preview. Allowed values: Basic,
Enterprise, Standard. Default:
Standard.
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.
Good point! I will modify the help text as follows:
--deployment-name : Name of the active deployment.
Default: default.
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.
please check the argument spec
src/spring/azext_spring/_params.py
Outdated
@@ -268,6 +268,8 @@ def load_arguments(self, _): | |||
help='A json file path for the persistent storages to be mounted to the app') | |||
c.argument('loaded_public_certificate_file', options_list=['--loaded-public-certificate-file', '-f'], type=str, | |||
help='A json file path indicates the certificates which would be loaded to app') | |||
c.argument('deployment_name', type=str, default='default', | |||
help='Name of the active deployment.', validator=validate_name) |
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.
is this active deployment
or default deployment
? According to line 148 in app.py, this should be default deployment
.
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.
Sure. Will change to default deployment
@zhoxing-ms Hi Xing. Would you please help review it again when you are free? Please merge this PR if it is ready to merge. Thanks a lot! |
[Release] Update index.json for extension [ spring ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=29541&view=results |
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az spring app create
command add --deployment-name argument.General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)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 pull request is merged into main branch, a new pull request will be created to update
src/index.json
automatically.The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify
src/index.json
.