Skip to content

Commit

Permalink
Merge pull request #2205 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2202-to-release-1.29

[release-1.29] fix: ensure azure cloud config could be loaded from secret
  • Loading branch information
k8s-ci-robot committed Mar 3, 2024
2 parents 3408b3e + f3b6448 commit 9b2446d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/azureutils/azure_disk_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func GetCloudProviderFromClient(ctx context.Context, kubeClient *clientset.Clien
az := &azure.Cloud{}
if kubeClient != nil {
klog.V(2).Infof("reading cloud config from secret %s/%s", secretNamespace, secretName)
config, err := configloader.Load[azure.Config](ctx, &configloader.K8sSecretLoaderConfig{
config, err = configloader.Load[azure.Config](ctx, &configloader.K8sSecretLoaderConfig{
K8sSecretConfig: configloader.K8sSecretConfig{
SecretName: secretName,
SecretNamespace: secretNamespace,
Expand Down

0 comments on commit 9b2446d

Please sign in to comment.