diff --git a/cli/k8s_client/yaml_factory.go b/cli/k8s_client/yaml_factory.go index df2b0a251..961d84075 100644 --- a/cli/k8s_client/yaml_factory.go +++ b/cli/k8s_client/yaml_factory.go @@ -433,7 +433,7 @@ func GetCSIDeploymentYAML(args *DeploymentYAMLArguments) string { autosupportDebugLine = "#" + autosupportDebugLine } - if args.CloudProvider == CloudProviderAzure { + if strings.EqualFold(args.CloudProvider, CloudProviderAzure) { deploymentYAML = strings.ReplaceAll(deploymentYAML, "{AZURE_CREDENTIAL_FILE_ENV}", "- name: AZURE_CREDENTIAL_FILE\n value: /etc/kubernetes/azure.json") deploymentYAML = strings.ReplaceAll(deploymentYAML, "{AZURE_CREDENTIAL_FILE_VOLUME}", "- name: azure-cred\n hostPath:\n path: /etc/kubernetes\n type: DirectoryOrCreate") deploymentYAML = strings.ReplaceAll(deploymentYAML, "{AZURE_CREDENTIAL_FILE_VOLUME_MOUNT}", "- name: azure-cred\n mountPath: /etc/kubernetes")