Skip to content

Commit a89f145

Browse files
committed
install sudo curl
1 parent f7ba1f6 commit a89f145

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

deploy/example/storageclass-azurefile-csi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ provisioner: file.csi.azure.com
77
allowVolumeExpansion: true
88
parameters:
99
skuName: Premium_LRS # available values: Premium_LRS, Premium_ZRS, Standard_LRS, StandardV2_LRS, Standard_GRS, Standard_ZRS, Standard_RAGRS, Standard_RAGZRS
10+
mountWithManagedIdentity: "true"
1011
reclaimPolicy: Delete
1112
volumeBindingMode: Immediate
1213
mountOptions:

pkg/azurefile/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,6 @@ func removeOptionIfExists(options []string, removeOption string) ([]string, bool
378378

379379
func setCredentialCache(server, clientID string) ([]byte, error) {
380380
klog.V(2).Infof("setCredentialCache for server %s with clientID %s", server, clientID)
381-
cmd := exec.Command("azfilesauthmanager", "set", server, "--imds-client-id", clientID)
381+
cmd := exec.Command("sudo", "azfilesauthmanager", "set", server, "--imds-client-id", clientID)
382382
return cmd.CombinedOutput()
383383
}

pkg/azurefileplugin/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG binary=./_output/${ARCH}/azurefileplugin
3434
COPY ${binary} /azurefileplugin
3535
COPY --from=builder --chown=root:root /usr/local/bin/azcopy /usr/local/bin/azcopy
3636

37-
RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs nfs-common netbase python3-requests
37+
RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs nfs-common netbase curl sudo python3-requests
3838

3939
COPY ./pkg/azurefile-proxy/init.sh /azurefile-proxy/
4040
COPY ./pkg/azurefile-proxy/install-proxy.sh /azurefile-proxy/

0 commit comments

Comments
 (0)