-
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
[feat] Add support for --assign-public-endpoint and --enable-log-stream-public-endpoint #4866
Changes from 16 commits
b6220d1
181252b
a1c9089
89f19dc
835a3a8
ec677e0
0e61db2
b931800
f4b8ce4
0b3c082
7af9d78
7b7750d
50606a7
e85e483
46c1205
7a2bd52
61b2634
1105d3f
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 |
---|---|---|
|
@@ -76,6 +76,10 @@ def load_arguments(self, _): | |
c.argument('service_runtime_subnet', arg_group='VNet Injection', options_list=['--service-runtime-subnet', '--svc-subnet'], help='The name or ID of an existing subnet in "vnet" into which to deploy the Spring Apps service runtime. Required when deploying into a Virtual Network.', validator=validate_vnet) | ||
c.argument('service_runtime_network_resource_group', arg_group='VNet Injection', options_list=['--service-runtime-network-resource-group', '--svc-nrg'], help='The resource group where all network resources for Azure Spring Apps service runtime will be created in.', validator=validate_node_resource_group) | ||
c.argument('app_network_resource_group', arg_group='VNet Injection', options_list=['--app-network-resource-group', '--app-nrg'], help='The resource group where all network resources for apps will be created in.', validator=validate_node_resource_group) | ||
c.argument('enable_log_stream_public_endpoint', | ||
arg_type=get_three_state_flag(), | ||
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. Could we use 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. Seems could not, as this parameter would be persisted as properties of a resource 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. Got it, thanks~ |
||
options_list=['--enable-log-stream-public-endpoint', '--enable-lspa'], | ||
help='If true, assign public endpoint for log streaming in vnet injection instance which could be accessed out of virtual network.') | ||
c.argument('enable_java_agent', | ||
arg_group='Application Insights', | ||
arg_type=get_three_state_flag(), | ||
|
@@ -182,6 +186,10 @@ def load_arguments(self, _): | |
c.argument('build_pool_size', | ||
arg_type=get_enum_type(['S1', 'S2', 'S3', 'S4', 'S5']), | ||
help='(Enterprise Tier Only) Size of build agent pool. See https://aka.ms/azure-spring-cloud-build-service-docs for size info.') | ||
c.argument('enable_log_stream_public_endpoint', | ||
arg_type=get_three_state_flag(), | ||
options_list=['--enable-log-stream-public-endpoint', '--enable-lspa'], | ||
help='If true, assign public endpoint for log streaming in vnet injection instance which could be accessed out of virtual network.') | ||
|
||
for scope in ['spring create', 'spring update']: | ||
with self.argument_context(scope) as c: | ||
|
@@ -199,6 +207,9 @@ def load_arguments(self, _): | |
c.argument('assign_endpoint', arg_type=get_three_state_flag(), | ||
help='If true, assign endpoint URL for direct access.', default=False, | ||
options_list=['--assign-endpoint', c.deprecate(target='--is-public', redirect='--assign-endpoint', hide=True)]) | ||
c.argument('assign_public_endpoint', | ||
arg_type=get_three_state_flag(), | ||
help='If true, assign endpoint URL which could be accessed out of virtual network for vnet injection instance app.') | ||
c.argument('assign_identity', | ||
arg_type=get_three_state_flag(), | ||
validator=validate_create_app_with_system_identity_or_warning, | ||
|
@@ -227,6 +238,9 @@ def load_arguments(self, _): | |
c.argument('assign_endpoint', arg_type=get_three_state_flag(), | ||
help='If true, assign endpoint URL for direct access.', | ||
options_list=['--assign-endpoint', c.deprecate(target='--is-public', redirect='--assign-endpoint', hide=True)]) | ||
c.argument('assign_public_endpoint', | ||
arg_type=get_three_state_flag(), | ||
help='If true, assign endpoint URL which could be accessed out of virtual network for vnet injection instance app.') | ||
c.argument('https_only', arg_type=get_three_state_flag(), help='If true, access app via https', default=False) | ||
c.argument('enable_ingress_to_app_tls', arg_type=get_three_state_flag(), | ||
help='If true, enable ingress to app tls', | ||
|
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.
It is suggested to merge some similar history notes, so that there will not be too much content for users to read
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.
Updated