Skip to content

Commit ec57920

Browse files
Adding CLI Configuration for DisableInformerCache Flag
This is required for our helm charts where customers can opt to change the caching behaviour during restore.
1 parent 67c871f commit ec57920

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/k8s-extension/azext_k8s_extension/partner_extensions/DataProtectionKubernetes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def __init__(self):
2222
- Backup storage location (required)
2323
- Resource Requests (optional)
2424
- Resource Limits (optional)
25+
- Disable Informer Cache (optional)
2526
"""
2627
self.TENANT_ID = "credentials.tenantId"
2728
self.BACKUP_STORAGE_ACCOUNT_CONTAINER = "configuration.backupStorageLocation.bucket"
@@ -34,6 +35,7 @@ def __init__(self):
3435
self.RESOURCE_LIMIT_MEMORY = "resources.limits.memory"
3536
self.BACKUP_STORAGE_ACCOUNT_USE_AAD = "configuration.backupStorageLocation.config.useAAD"
3637
self.BACKUP_STORAGE_ACCOUNT_STORAGE_ACCOUNT_URI = "configuration.backupStorageLocation.config.storageAccountURI"
38+
self.DISABLE_INFORMER_CACHE = "configuration.disableInformerCache"
3739

3840
self.blob_container = "blobContainer"
3941
self.storage_account = "storageAccount"
@@ -45,6 +47,7 @@ def __init__(self):
4547
self.memory_limit = "memoryLimit"
4648
self.use_aad = "useAAD"
4749
self.storage_account_uri = "storageAccountURI"
50+
self.disable_informer_cache = "disableInformerCache"
4851

4952
self.configuration_mapping = {
5053
self.blob_container.lower(): self.BACKUP_STORAGE_ACCOUNT_CONTAINER,
@@ -56,7 +59,8 @@ def __init__(self):
5659
self.cpu_limit.lower(): self.RESOURCE_LIMIT_CPU,
5760
self.memory_limit.lower(): self.RESOURCE_LIMIT_MEMORY,
5861
self.use_aad.lower(): self.BACKUP_STORAGE_ACCOUNT_USE_AAD,
59-
self.storage_account_uri.lower(): self.BACKUP_STORAGE_ACCOUNT_STORAGE_ACCOUNT_URI
62+
self.storage_account_uri.lower(): self.BACKUP_STORAGE_ACCOUNT_STORAGE_ACCOUNT_URI,
63+
self.disable_informer_cache.lower(): self.DISABLE_INFORMER_CACHE
6064
}
6165

6266
self.bsl_configuration_settings = [

0 commit comments

Comments
 (0)