Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/containerapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release History
===============
upcoming
++++++
* 'az containerapp service': Remove deprecated command group altogether, only keep 'az containerapp add-on' for add-ons
* 'az containerapp env dapr-component resiliency': Add support for Dapr Component Resiliency Circuit Breakers
* 'az containerapp create/update/up': Don't compress jar/war/zip file before upload source code
* 'az containerapp create/update/up': Update source to cloud builder to 20240124.1
Expand Down
86 changes: 0 additions & 86 deletions src/containerapp/azext_containerapp/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,102 +239,16 @@
--location eastus2 --mi-system-assigned --mi-user-assigned MyUserIdentityResourceId
"""

helps['containerapp service'] = """
type: group
short-summary: Commands to manage services available within the environment.
deprecate_info: This command group is deprecated. Use 'az containerapp add-on' instead.
"""

helps['containerapp add-on'] = """
type: group
short-summary: Commands to manage add-ons available within the environment.
"""

helps['containerapp service list'] = """
type: command
short-summary: List all services within the environment.
"""

helps['containerapp add-on list'] = """
type: command
short-summary: List all add-ons within the environment.
"""

helps['containerapp service redis'] = """
type: group
short-summary: Commands to manage the redis service for the Container Apps environment.
"""

helps['containerapp service postgres'] = """
type: group
short-summary: Commands to manage the postgres service for the Container Apps environment.
"""

helps['containerapp service kafka'] = """
type: group
short-summary: Commands to manage the kafka service for the Container Apps environment.
"""

helps['containerapp service mariadb'] = """
type: group
short-summary: Commands to manage the mariadb service for the Container Apps environment.
"""

helps['containerapp service qdrant'] = """
type: group
short-summary: Commands to manage the qdrant service for the Container Apps environment.
"""

helps['containerapp service redis create'] = """
type: command
short-summary: Command to create the redis service.
"""

helps['containerapp service postgres create'] = """
type: command
short-summary: Command to create the postgres service.
"""

helps['containerapp service kafka create'] = """
type: command
short-summary: Command to create the kafka service.
"""

helps['containerapp service mariadb create'] = """
type: command
short-summary: Command to create the mariadb service.
"""

helps['containerapp service qdrant create'] = """
type: command
short-summary: Command to create the qdrant service.
"""

helps['containerapp service redis delete'] = """
type: command
short-summary: Command to delete the redis service.
"""

helps['containerapp service postgres delete'] = """
type: command
short-summary: Command to delete the postgres service.
"""

helps['containerapp service kafka delete'] = """
type: command
short-summary: Command to delete the kafka service.
"""

helps['containerapp service mariadb delete'] = """
type: command
short-summary: Command to delete the mariadb service.
"""

helps['containerapp service qdrant delete'] = """
type: command
short-summary: Command to delete the qdrant service.
"""

helps['containerapp resiliency'] = """
type: group
short-summary: Commands to manage resiliency policies for a container app.
Expand Down
25 changes: 1 addition & 24 deletions src/containerapp/azext_containerapp/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def load_command_table(self, _):
with self.command_group('containerapp env dapr-component') as g:
g.custom_command('init', 'init_dapr_components', is_preview=True)

with self.command_group('containerapp env identity',is_preview=True) as g:
with self.command_group('containerapp env identity', is_preview=True) as g:
g.custom_command('assign', 'assign_env_managed_identity', supports_no_wait=True, exception_handler=ex_handler_factory())
g.custom_command('remove', 'remove_env_managed_identity', supports_no_wait=True, exception_handler=ex_handler_factory())
g.custom_show_command('show', 'show_env_managed_identity')
Expand All @@ -62,48 +62,25 @@ def load_command_table(self, _):
g.custom_command('set', 'create_or_update_storage', supports_no_wait=True, exception_handler=ex_handler_factory())
g.custom_command('remove', 'remove_storage', confirmation=True, exception_handler=ex_handler_factory())

with self.command_group('containerapp service', deprecate_info=self.deprecate(redirect='containerapp add-on', expiration='2.59.0', hide=True), is_preview=True) as g:
g.custom_command('list', 'list_all_services')

with self.command_group('containerapp add-on', is_preview=True) as g:
g.custom_command('list', 'list_all_services')

with self.command_group('containerapp service redis', deprecate_info=self.deprecate(redirect='containerapp add-on redis', expiration='2.59.0', hide=True)) as g:
g.custom_command('create', 'create_redis_service', supports_no_wait=True)
g.custom_command('delete', 'delete_redis_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp add-on redis') as g:
g.custom_command('create', 'create_redis_service', supports_no_wait=True)
g.custom_command('delete', 'delete_redis_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp service postgres', deprecate_info=self.deprecate(redirect='containerapp add-on postgres', expiration='2.59.0', hide=True)) as g:
g.custom_command('create', 'create_postgres_service', supports_no_wait=True)
g.custom_command('delete', 'delete_postgres_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp add-on postgres') as g:
g.custom_command('create', 'create_postgres_service', supports_no_wait=True)
g.custom_command('delete', 'delete_postgres_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp service kafka', deprecate_info=self.deprecate(redirect='containerapp add-on kafka', expiration='2.59.0', hide=True)) as g:
g.custom_command('create', 'create_kafka_service', supports_no_wait=True)
g.custom_command('delete', 'delete_kafka_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp add-on kafka') as g:
g.custom_command('create', 'create_kafka_service', supports_no_wait=True)
g.custom_command('delete', 'delete_kafka_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp service mariadb', deprecate_info=self.deprecate(redirect='containerapp add-on mariadb', expiration='2.59.0', hide=True)) as g:
g.custom_command('create', 'create_mariadb_service', supports_no_wait=True)
g.custom_command('delete', 'delete_mariadb_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp add-on mariadb') as g:
g.custom_command('create', 'create_mariadb_service', supports_no_wait=True)
g.custom_command('delete', 'delete_mariadb_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp service qdrant', deprecate_info=self.deprecate(redirect='containerapp add-on qdrant', expiration='2.59.0', hide=True)) as g:
g.custom_command('create', 'create_qdrant_service', supports_no_wait=True)
g.custom_command('delete', 'delete_qdrant_service', confirmation=True, supports_no_wait=True)

with self.command_group('containerapp add-on qdrant') as g:
g.custom_command('create', 'create_qdrant_service', supports_no_wait=True)
g.custom_command('delete', 'delete_qdrant_service', confirmation=True, supports_no_wait=True)
Expand Down
Loading