File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ func (s *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublish
148148 }
149149 klog .V (6 ).Infof ("NodePublishVolume populating identity provider %q in mount options" , identityProvider )
150150 fuseMountOptions = joinMountOptions (fuseMountOptions , []string {util .OptInHnw + "=true" , util .TokenServerIdentityProviderConst + "=" + identityProvider })
151+ } else if enableSidecarBucketAccessCheckForSidecarVersion {
152+ //Enable sidecar bucket access check only for Workload Identity workloads. This feature consumes additional quota for Host Network pods as we do not have token caching.
153+ fuseMountOptions = joinMountOptions (fuseMountOptions , []string {util .EnableSidecarBucketAccessCheckConst + "=" + strconv .FormatBool (s .driver .config .EnableSidecarBucketAccessCheck )})
151154 }
152155
153156 if enableSidecarBucketAccessCheckForSidecarVersion {
@@ -161,7 +164,6 @@ func (s *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublish
161164 fuseMountOptions = joinMountOptions (fuseMountOptions , []string {
162165 util .PodNamespaceConst + "=" + vc [VolumeContextKeyPodNamespace ],
163166 util .ServiceAccountNameConst + "=" + vc [VolumeContextKeyServiceAccountName ],
164- util .EnableSidecarBucketAccessCheckConst + "=" + strconv .FormatBool (s .driver .config .EnableSidecarBucketAccessCheck ),
165167 util .TokenServerIdentityPoolConst + "=" + identityPool })
166168 }
167169
You can’t perform that action at this time.
0 commit comments