Skip to content

Commit

Permalink
fix go lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Nov 5, 2024
1 parent e7bf9b3 commit b61d0d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/blob/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,14 +572,14 @@ func (d *Driver) GetAuthEnv(ctx context.Context, volumeID, protocol string, attr
if clientID != "" {
klog.V(2).Infof("clientID(%s) is specified, use workload identity for blobfuse auth", clientID)

workload_identity_token, err := parseServiceAccountToken(serviceAccountToken)
workloadIdentityToken, err := parseServiceAccountToken(serviceAccountToken)
if err != nil {
return rgName, accountName, accountKey, containerName, authEnv, err
}

authEnv = append(authEnv, "AZURE_STORAGE_SPN_CLIENT_ID="+clientID)
authEnv = append(authEnv, "AZURE_STORAGE_SPN_TENANT_ID="+tenantID)
authEnv = append(authEnv, "WORKLOAD_IDENTITY_TOKEN="+workload_identity_token)
authEnv = append(authEnv, "WORKLOAD_IDENTITY_TOKEN="+workloadIdentityToken)

return rgName, accountName, accountKey, containerName, authEnv, err
}
Expand Down

0 comments on commit b61d0d3

Please sign in to comment.