From ec579207b15ddc94d9372c8e9cd9ab333a5a2c98 Mon Sep 17 00:00:00 2001 From: Mayank Aggarwal Date: Thu, 15 May 2025 09:02:54 +0530 Subject: [PATCH] Adding CLI Configuration for DisableInformerCache Flag This is required for our helm charts where customers can opt to change the caching behaviour during restore. --- .../partner_extensions/DataProtectionKubernetes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/k8s-extension/azext_k8s_extension/partner_extensions/DataProtectionKubernetes.py b/src/k8s-extension/azext_k8s_extension/partner_extensions/DataProtectionKubernetes.py index f88cc9b965d..8ce10e539aa 100644 --- a/src/k8s-extension/azext_k8s_extension/partner_extensions/DataProtectionKubernetes.py +++ b/src/k8s-extension/azext_k8s_extension/partner_extensions/DataProtectionKubernetes.py @@ -22,6 +22,7 @@ def __init__(self): - Backup storage location (required) - Resource Requests (optional) - Resource Limits (optional) + - Disable Informer Cache (optional) """ self.TENANT_ID = "credentials.tenantId" self.BACKUP_STORAGE_ACCOUNT_CONTAINER = "configuration.backupStorageLocation.bucket" @@ -34,6 +35,7 @@ def __init__(self): self.RESOURCE_LIMIT_MEMORY = "resources.limits.memory" self.BACKUP_STORAGE_ACCOUNT_USE_AAD = "configuration.backupStorageLocation.config.useAAD" self.BACKUP_STORAGE_ACCOUNT_STORAGE_ACCOUNT_URI = "configuration.backupStorageLocation.config.storageAccountURI" + self.DISABLE_INFORMER_CACHE = "configuration.disableInformerCache" self.blob_container = "blobContainer" self.storage_account = "storageAccount" @@ -45,6 +47,7 @@ def __init__(self): self.memory_limit = "memoryLimit" self.use_aad = "useAAD" self.storage_account_uri = "storageAccountURI" + self.disable_informer_cache = "disableInformerCache" self.configuration_mapping = { self.blob_container.lower(): self.BACKUP_STORAGE_ACCOUNT_CONTAINER, @@ -56,7 +59,8 @@ def __init__(self): self.cpu_limit.lower(): self.RESOURCE_LIMIT_CPU, self.memory_limit.lower(): self.RESOURCE_LIMIT_MEMORY, self.use_aad.lower(): self.BACKUP_STORAGE_ACCOUNT_USE_AAD, - self.storage_account_uri.lower(): self.BACKUP_STORAGE_ACCOUNT_STORAGE_ACCOUNT_URI + self.storage_account_uri.lower(): self.BACKUP_STORAGE_ACCOUNT_STORAGE_ACCOUNT_URI, + self.disable_informer_cache.lower(): self.DISABLE_INFORMER_CACHE } self.bsl_configuration_settings = [