Skip to content

Commit 4b83fc3

Browse files
committed
fix: Ensure cloud-config is used when read correctly from configmap
Signed-off-by: Jose Luis Pedrosa <[email protected]>
1 parent a95af80 commit 4b83fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/azurefile/azure.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func getCloudProvider(ctx context.Context, kubeconfig, nodeID, secretName, secre
7575

7676
if kubeClient != nil {
7777
klog.V(2).Infof("reading cloud config from secret %s/%s", secretNamespace, secretName)
78-
config, err := configloader.Load[azure.Config](ctx, &configloader.K8sSecretLoaderConfig{
78+
config, err = configloader.Load[azure.Config](ctx, &configloader.K8sSecretLoaderConfig{
7979
K8sSecretConfig: configloader.K8sSecretConfig{
8080
SecretName: secretName,
8181
SecretNamespace: secretNamespace,

0 commit comments

Comments
 (0)