From 8891d48806f7a62ee5ac1978cee2772303f7f08e Mon Sep 17 00:00:00 2001 From: Jont828 Date: Wed, 21 Feb 2024 18:27:25 -0500 Subject: [PATCH] Set default to false --- cluster-autoscaler/cloudprovider/azure/azure_config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster-autoscaler/cloudprovider/azure/azure_config.go b/cluster-autoscaler/cloudprovider/azure/azure_config.go index 2f6f5f279ab..bdfdaee28ef 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_config.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_config.go @@ -63,6 +63,7 @@ const ( // toggle dynamicInstanceListDefault = false enableVmssFlexDefault = false + enableForceDeleteDefault = false ) // CloudProviderRateLimitConfig indicates the rate limit config for each clients. @@ -310,6 +311,8 @@ func BuildAzureConfig(configReader io.Reader) (*Config, error) { cfg.EnableForceDelete, err = strconv.ParseBool(enableForceDelete) if err != nil { return nil, fmt.Errorf("failed to parse AZURE_ENABLE_FORCE_DELETE: %q, %v", enableForceDelete, err) + } else { + cfg.EnableForceDelete = enableForceDeleteDefault } }