Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Jul 3, 2023
1 parent 95eed9f commit e71df7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/k8s_client/yaml_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e71df7f

Please sign in to comment.