Skip to content

Commit 95677e9

Browse files
authored
Merge pull request #1265 from k8s-infra-cherrypick-robot/cherry-pick-1264-to-release-1.23
[release-1.23] fix: ensure azure cloud config could be loaded from secret
2 parents fae6d62 + 5675829 commit 95677e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/blob/azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func GetCloudProvider(ctx context.Context, kubeClient kubernetes.Interface, node
6060
if kubeClient != nil {
6161
az.KubeClient = kubeClient
6262
klog.V(2).Infof("reading cloud config from secret %s/%s", secretNamespace, secretName)
63-
config, err := configloader.Load[azure.Config](ctx, &configloader.K8sSecretLoaderConfig{
63+
config, err = configloader.Load[azure.Config](ctx, &configloader.K8sSecretLoaderConfig{
6464
K8sSecretConfig: configloader.K8sSecretConfig{
6565
SecretName: secretName,
6666
SecretNamespace: secretNamespace,

0 commit comments

Comments
 (0)