From 942738f75fd5ae91fed5e32f5a63a2606d3fbda7 Mon Sep 17 00:00:00 2001 From: Arif-lakhani Date: Mon, 30 Jan 2023 16:13:13 -0800 Subject: [PATCH] Deprecate longer parameter names when accepting config settings (#213) Co-authored-by: deeksha345 <34255011+deeksha345@users.noreply.github.com> --- src/k8s-extension/azext_k8s_extension/_params.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/k8s-extension/azext_k8s_extension/_params.py b/src/k8s-extension/azext_k8s_extension/_params.py index a2dfcd01af4..5708813622e 100644 --- a/src/k8s-extension/azext_k8s_extension/_params.py +++ b/src/k8s-extension/azext_k8s_extension/_params.py @@ -52,23 +52,23 @@ def load_arguments(self, _): help='Specify the release train for the extension type.') c.argument('configuration_settings', arg_group="Configuration", - options_list=['--configuration-settings', '--config'], + options_list=['--configuration-settings', '--config', c.deprecate(target='--config-settings', redirect='--configuration-settings')], action=AddConfigurationSettings, nargs='+', help='Configuration Settings as key=value pair. Repeat parameter for each setting') c.argument('configuration_protected_settings', arg_group="Configuration", - options_list=['--config-protected-settings', '--config-protected'], + options_list=['--config-protected-settings', '--config-protected', c.deprecate(target='--configuration-protected-settings', redirect='--config-protected-settings')], action=AddConfigurationProtectedSettings, nargs='+', help='Configuration Protected Settings as key=value pair. Repeat parameter for each setting') c.argument('configuration_settings_file', arg_group="Configuration", - options_list=['--config-settings-file', '--config-file'], + options_list=['--config-settings-file', '--config-file', c.deprecate(target='--configuration-settings-file', redirect='--config-settings-file')], help='JSON file path for configuration-settings') c.argument('configuration_protected_settings_file', arg_group="Configuration", - options_list=['--config-protected-file', '--protected-settings-file'], + options_list=['--config-protected-settings-file', '--config-protected-file', c.deprecate(target='--configuration-protected-settings-file', redirect='--config-protected-file')], help='JSON file path for configuration-protected-settings') c.argument('release_namespace', help='Specify the namespace to install the extension release.')