-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Container app] az containerapp env java-component: Support new configuration parameters on java component #8320
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
Changes from 14 commits
30f26d7
214a192
7e58d05
df1c146
75a20f1
ebf42e7
5000140
71f2a93
262af2f
de41887
77637d8
a57cf7c
283ad3b
4a7887d
d459bd5
8a8ea15
9283205
a87bc57
ea03f2a
8b4f3b8
eb76825
b0d3f2e
5de8280
34fef84
a0a4f5d
d5006c4
15b3679
9367af3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1258,7 +1258,7 @@ | |
| az containerapp env java-component spring-cloud-config create -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component spring-cloud-config delete'] = """ | ||
|
|
@@ -1292,13 +1292,13 @@ | |
| az containerapp env java-component spring-cloud-config update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration | ||
| --set-configurations | ||
| - name: Update a Spring Cloud Config with custom configurations. | ||
| text: | | ||
| az containerapp env java-component spring-cloud-config update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component config-server-for-spring'] = """ | ||
|
|
@@ -1315,7 +1315,7 @@ | |
| az containerapp env java-component config-server-for-spring create -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| - name: Create a Config Server for Spring with multiple replicas. | ||
| text: | | ||
| az containerapp env java-component config-server-for-spring create -g MyResourceGroup \\ | ||
|
|
@@ -1355,13 +1355,13 @@ | |
| az containerapp env java-component config-server-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration | ||
| --set-configurations | ||
| - name: Update a Config Server for Spring with custom configurations. | ||
| text: | | ||
| az containerapp env java-component config-server-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component spring-cloud-eureka'] = """ | ||
|
|
@@ -1384,7 +1384,7 @@ | |
| az containerapp env java-component spring-cloud-eureka create -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component spring-cloud-eureka delete'] = """ | ||
|
|
@@ -1418,13 +1418,13 @@ | |
| az containerapp env java-component spring-cloud-eureka update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration | ||
| --set-configurations | ||
| - name: Update a Spring Cloud Eureka with custom configurations. | ||
| text: | | ||
| az containerapp env java-component spring-cloud-eureka update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component eureka-server-for-spring'] = """ | ||
|
|
@@ -1446,7 +1446,7 @@ | |
| az containerapp env java-component eureka-server-for-spring create -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component eureka-server-for-spring delete'] = """ | ||
|
|
@@ -1480,13 +1480,13 @@ | |
| az containerapp env java-component eureka-server-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration | ||
| --set-configurations | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||
| - name: Update an Eureka Server for Spring with custom configurations. | ||
| text: | | ||
| az containerapp env java-component eureka-server-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component admin-for-spring'] = """ | ||
|
|
@@ -1508,7 +1508,7 @@ | |
| az containerapp env java-component admin-for-spring create -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| - name: Create an Admin for Spring with multiple replicas. | ||
| text: | | ||
| az containerapp env java-component admin-for-spring create -g MyResourceGroup \\ | ||
|
|
@@ -1548,13 +1548,13 @@ | |
| az containerapp env java-component admin-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration | ||
| --set-configurations | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this (Delete all configurations of the Admin for Spring) work with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Base on the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The help message is wrong, --set-configurations could not delete configration, has updated to --remove-all-configurations |
||
| - name: Update an Admin for Spring with custom configurations. | ||
| text: | | ||
| az containerapp env java-component admin-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component nacos'] = """ | ||
|
|
@@ -1576,7 +1576,7 @@ | |
| az containerapp env java-component nacos create -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component nacos delete'] = """ | ||
|
|
@@ -1610,13 +1610,13 @@ | |
| az containerapp env java-component nacos update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration | ||
| --set-configurations | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||
| - name: Update an Nacos with custom configurations. | ||
| text: | | ||
| az containerapp env java-component nacos update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| helps['containerapp env java-component gateway-for-spring'] = """ | ||
|
|
@@ -1640,7 +1640,7 @@ | |
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --route-yaml MyRouteYamlFilePath \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| - name: Create a Gateway for Spring with multiple replicas. | ||
| text: | | ||
| az containerapp env java-component gateway-for-spring create -g MyResourceGroup \\ | ||
|
|
@@ -1687,13 +1687,13 @@ | |
| az containerapp env java-component gateway-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration | ||
| --set-configurations | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||
| - name: Update a Gateway for Spring with custom configurations. | ||
| text: | | ||
| az containerapp env java-component gateway-for-spring update -g MyResourceGroup \\ | ||
| -n MyJavaComponentName \\ | ||
| --environment MyEnvironment \\ | ||
| --configuration PropertyName1=Value1 PropertyName2=Value2 | ||
| --set-configurations PropertyName1=Value1 PropertyName2=Value2 | ||
| """ | ||
|
|
||
| # Container Apps Telemetry Commands | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -365,7 +365,11 @@ def load_arguments(self, _): | |
| c.argument('resource_group_name', arg_type=resource_group_name_type, id_part=None) | ||
| c.argument('service_bindings', nargs='*', options_list=['--bind'], help="Space separated list of services, bindings or other Java components to be connected to this Java Component. e.g. SVC_NAME1[:BIND_NAME1] SVC_NAME2[:BIND_NAME2]...") | ||
| c.argument('unbind_service_bindings', nargs='*', options_list=['--unbind'], help="Space separated list of services, bindings or Java components to be removed from this Java Component. e.g. BIND_NAME1...") | ||
| c.argument('configuration', nargs="*", help="Java component configuration. Configuration must be in format \"<propertyName>=<value>\" \"<propertyName>=<value>\"...") | ||
| c.argument('configuration', nargs="*", help="Java component configuration. Configuration must be in format \"<propertyName>=<value>\" \"<propertyName>=<value>\"...", deprecate_info=c.deprecate(target="--configuration")) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggest to add
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure. added |
||
| c.argument('set_configurations', nargs="*", options_list=['--set-configurations', '--set-configs'], help="Add or update Java component configuration(s). Configurations must be in format \"<propertyName>=<value>\" \"<propertyName>=<value>\"...") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed that the env_vars help text for Can we add one more similar line:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, updated this message |
||
| c.argument('replace_configurations', nargs="*", options_list=['--replace-configurations', '--replace-configs'], help="Replace Java component configuration(s), Other existing configurations are removed. Configurations must be in format \"<propertyName>=<value>\" \"<propertyName>=<value>\"...") | ||
| c.argument('remove_configurations', nargs="*", options_list=['--remove-configurations', '--remove-configs'], help="Remove Java component configuration(s). Specify configuration names separated by space, in format \"<propertyName>\" \"<propertyName>\"...") | ||
| c.argument('remove_all_configurations', arg_type=get_three_state_flag(), options_list=['--remove-all-configurations', '--remove-all-configs'], help="Remove all Java component configuration(s).") | ||
|
Comment on lines
+377
to
+378
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because these two parameters are similar, can they be merged into one parameter? For example, when
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, got it~ |
||
| c.argument('min_replicas', type=int, help="Minimum number of replicas to run for the Java component.") | ||
| c.argument('max_replicas', type=int, help="Maximum number of replicas to run for the Java component.") | ||
| c.argument('route_yaml', options_list=['--route-yaml', '--yaml'], help="Path to a .yaml file with the configuration of a Spring Cloud Gateway route. For an example, see https://aka.ms/gateway-for-spring-routes-yaml") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Should we add some examples for this parameter
--replace-configurationsto describe how to use it?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, examples added