Skip to content

Commit 1be76fe

Browse files
authored
Merge pull request #362 from denisok/change_driver_fsGroupPolicy
Allow Kubernetes to change permission of provisioned volumes
2 parents 0437685 + b23915e commit 1be76fe

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

deploy/kubernetes-1.21-test/hostpath/csi-hostpath-driverinfo.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ spec:
1515
# To determine at runtime which mode a volume uses, pod info and its
1616
# "csi.storage.k8s.io/ephemeral" entry are needed.
1717
podInfoOnMount: true
18+
# Kubernetes may use fsGroup to change permissions and ownership
19+
# of the volume to match user requested fsGroup in the pod's SecurityPolicy
20+
fsGroupPolicy: File

deploy/kubernetes-1.21/hostpath/csi-hostpath-driverinfo.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ spec:
1515
# To determine at runtime which mode a volume uses, pod info and its
1616
# "csi.storage.k8s.io/ephemeral" entry are needed.
1717
podInfoOnMount: true
18+
# Kubernetes may use fsGroup to change permissions and ownership
19+
# of the volume to match user requested fsGroup in the pod's SecurityPolicy
20+
fsGroupPolicy: File

deploy/kubernetes-distributed/hostpath/csi-hostpath-driverinfo.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ spec:
1818
# No attacher needed.
1919
attachRequired: false
2020
storageCapacity: true
21+
# Kubernetes may use fsGroup to change permissions and ownership
22+
# of the volume to match user requested fsGroup in the pod's SecurityPolicy
23+
fsGroupPolicy: File

0 commit comments

Comments
 (0)