Skip to content

Commit 5675829

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored andcommitted
fix: ensure azure cloud config could be loaded from secret
1 parent fae6d62 commit 5675829

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)