|
52 | 52 | CONST_ACSTOR_EXT_INSTALLATION_NAME, |
53 | 53 | CONST_ACSTOR_V1_EXT_INSTALLATION_NAME, |
54 | 54 | CONST_ACSTOR_VERSION_V1, |
55 | | - CONST_SUPPORTED_ACSTOR_VERSIONS, |
56 | 55 | ) |
57 | 56 | from azure.cli.command_modules.acs._helpers import ( |
58 | 57 | check_is_managed_aad_cluster, |
@@ -6782,15 +6781,8 @@ def set_up_azure_container_storage(self, mc: ManagedCluster) -> ManagedCluster: |
6782 | 6781 | if self.context.raw_param.get("enable_azure_container_storage") is not None: |
6783 | 6782 | self.context.set_intermediate("enable_azure_container_storage", True, overwrite_exists=True) |
6784 | 6783 | container_storage_version = self.context.raw_param.get("container_storage_version") |
6785 | | - has_container_storage_version = container_storage_version is not None |
6786 | 6784 |
|
6787 | | - if has_container_storage_version and container_storage_version not in CONST_SUPPORTED_ACSTOR_VERSIONS: |
6788 | | - raise InvalidArgumentValueError( |
6789 | | - f'Version {container_storage_version} is not supported for enabling Azure Container Storage. ' |
6790 | | - f'The only supported versions are {", ".join(CONST_SUPPORTED_ACSTOR_VERSIONS)}' |
6791 | | - ) |
6792 | | - |
6793 | | - if has_container_storage_version and container_storage_version == CONST_ACSTOR_VERSION_V1: |
| 6785 | + if container_storage_version is not None and container_storage_version == CONST_ACSTOR_VERSION_V1: |
6794 | 6786 | # read the azure container storage values passed |
6795 | 6787 | pool_type = self.context.raw_param.get("enable_azure_container_storage") |
6796 | 6788 | enable_azure_container_storage = pool_type is not None |
@@ -8816,12 +8808,6 @@ def update_azure_container_storage(self, mc: ManagedCluster) -> ManagedCluster: |
8816 | 8808 | ' Please remove this parameter and try again.' |
8817 | 8809 | ) |
8818 | 8810 |
|
8819 | | - if container_storage_version is not None and container_storage_version not in CONST_SUPPORTED_ACSTOR_VERSIONS: |
8820 | | - raise InvalidArgumentValueError( |
8821 | | - f'Version {container_storage_version} is not supported for enabling Azure Container Storage. ' |
8822 | | - f'The only supported versions are {CONST_SUPPORTED_ACSTOR_VERSIONS}' |
8823 | | - ) |
8824 | | - |
8825 | 8811 | if enable_azure_container_storage_param is not None or disable_azure_container_storage_param is not None: |
8826 | 8812 | self.context.set_intermediate("container_storage_version", container_storage_version, overwrite_exists=True) |
8827 | 8813 |
|
|
0 commit comments