Skip to content

Commit 7fed49f

Browse files
{ACR} Migrate helm deprecation announcement (#31194)
* Initial helm announce * Use deprecate info * Fix * Apply suggestions from code review Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com> --------- Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>
1 parent a253c13 commit 7fed49f

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

src/azure-cli/azure/cli/command_modules/acr/_breaking_change.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,25 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
from azure.cli.core.breaking_change import register_output_breaking_change
6+
from azure.cli.core.breaking_change import register_output_breaking_change, register_command_group_deprecate
77

88
register_output_breaking_change(command_name='acr login',
99
description='Exit code will be 1 if command fails for docker login')
10+
11+
helm_bc_msg = 'In November 2020, Helm 2 reached end of life. ' \
12+
'Starting on March 30th, 2025 Azure Container Registry will no longer support Helm 2. ' \
13+
'Therefore, the legacy "Helm repositories" functionality will also be retired. ' \
14+
'We recommend that you transition to Helm 3 immediately.\n' \
15+
'Starting January 21st, 2025 the CLI command `az acr helm push` was retired to ' \
16+
'prevent pushing new Helm charts to legacy Helm repositories.\n' \
17+
'Starting March 30th, 2025 the CLI command group `az acr helm` was retired, ' \
18+
'ending all legacy Helm repository capabilities in Azure Container Registry.\n' \
19+
'All Helm charts not stored as an OCI artifact ' \
20+
'was deleted from Azure Container Registry on March 30th, 2025.\n' \
21+
'Learn how to find all Helm charts stored in a Helm repository here: `az acr helm list`. ' \
22+
'If the Helm chart you are using is listed ' \
23+
'then it is stored in a legacy Helm repository and is at risk of deletion.\n' \
24+
'For more information on managing and deploying applications for Kubernetes, ' \
25+
'see https://aka.ms/acr/helm.'
26+
register_command_group_deprecate(command_group='acr helm', redirect='Helm v3 commands', message=helm_bc_msg,
27+
target_version='Sept 30th, 2025')

src/azure-cli/azure/cli/command_modules/acr/commands.py

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -360,24 +360,13 @@ def load_command_table(self, _):
360360
g.show_command('show', 'acr_config_authentication_as_arm_show')
361361
g.command('update', 'acr_config_authentication_as_arm_update')
362362

363-
def _helm_deprecate_message(self):
364-
msg = "This {} has been deprecated and will be removed in future release.".format(self.object_type)
365-
msg += " Use '{}' instead.".format(self.redirect)
366-
msg += " Learn more about storing Helm charts at"
367-
msg += " https://aka.ms/acr/helm"
368-
return msg
369-
370-
helm_deprecate_info = self.deprecate(redirect="Helm v3 commands", message_func=_helm_deprecate_message)
371-
372-
with self.command_group('acr helm', acr_helm_util, deprecate_info=helm_deprecate_info) as g:
373-
g.command('list', 'acr_helm_list', table_transformer=helm_list_output_format,
374-
deprecate_info=helm_deprecate_info)
375-
g.show_command('show', 'acr_helm_show', table_transformer=helm_show_output_format,
376-
deprecate_info=helm_deprecate_info)
377-
g.command('delete', 'acr_helm_delete', deprecate_info=helm_deprecate_info)
378-
g.command('push', 'acr_helm_push', deprecate_info=helm_deprecate_info)
379-
g.command('repo add', 'acr_helm_repo_add', deprecate_info=helm_deprecate_info)
380-
g.command('install-cli', 'acr_helm_install_cli', is_preview=True, deprecate_info=helm_deprecate_info)
363+
with self.command_group('acr helm', acr_helm_util) as g:
364+
g.command('list', 'acr_helm_list', table_transformer=helm_list_output_format)
365+
g.show_command('show', 'acr_helm_show', table_transformer=helm_show_output_format)
366+
g.command('delete', 'acr_helm_delete')
367+
g.command('push', 'acr_helm_push')
368+
g.command('repo add', 'acr_helm_repo_add')
369+
g.command('install-cli', 'acr_helm_install_cli', is_preview=True)
381370

382371
with self.command_group('acr network-rule', acr_network_rule_util) as g:
383372
g.command('list', 'acr_network_rule_list')

0 commit comments

Comments
 (0)