Loading deploy/kubernetes/examples/pvc-manual.yaml 0 → 100644 +45 −0 Original line number Diff line number Diff line # Statically provisioned PVC: # An existing bucket or path inside bucket manually created # by the administrator beforehand will be bound to the PVC, # and it won't be removed when you remove the PV apiVersion: v1 kind: PersistentVolume metadata: name: manualbucket/path spec: storageClassName: csi-s3 capacity: storage: 10Gi accessModes: - ReadWriteMany claimRef: namespace: default name: manualclaim csi: driver: ch.ctrox.csi.s3-driver controllerPublishSecretRef: name: csi-s3-secret namespace: kube-system nodePublishSecretRef: name: csi-s3-secret namespace: kube-system nodeStageSecretRef: name: csi-s3-secret namespace: kube-system volumeAttributes: capacity: 10Gi mounter: geesefs volumeHandle: manualbucket/path --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: csi-s3-pvc spec: # Empty storage class disables dynamic provisioning storageClassName: "" accessModes: - ReadWriteMany resources: requests: storage: 10Gi deploy/kubernetes/examples/pvc.yaml +3 −0 Original line number Diff line number Diff line # Dynamically provisioned PVC: # A bucket or path inside bucket will be created automatically # for the PV and removed when the PV will be removed apiVersion: v1 kind: PersistentVolumeClaim metadata: Loading pkg/driver/controllerserver.go +0 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,6 @@ func (cs *controllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol return nil, fmt.Errorf("failed to initialize S3 client: %s", err) } // FIXME Don't delete the bucket if it existed initially var deleteErr error if prefix == "" { // prefix is empty, we delete the whole bucket Loading Loading
deploy/kubernetes/examples/pvc-manual.yaml 0 → 100644 +45 −0 Original line number Diff line number Diff line # Statically provisioned PVC: # An existing bucket or path inside bucket manually created # by the administrator beforehand will be bound to the PVC, # and it won't be removed when you remove the PV apiVersion: v1 kind: PersistentVolume metadata: name: manualbucket/path spec: storageClassName: csi-s3 capacity: storage: 10Gi accessModes: - ReadWriteMany claimRef: namespace: default name: manualclaim csi: driver: ch.ctrox.csi.s3-driver controllerPublishSecretRef: name: csi-s3-secret namespace: kube-system nodePublishSecretRef: name: csi-s3-secret namespace: kube-system nodeStageSecretRef: name: csi-s3-secret namespace: kube-system volumeAttributes: capacity: 10Gi mounter: geesefs volumeHandle: manualbucket/path --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: csi-s3-pvc spec: # Empty storage class disables dynamic provisioning storageClassName: "" accessModes: - ReadWriteMany resources: requests: storage: 10Gi
deploy/kubernetes/examples/pvc.yaml +3 −0 Original line number Diff line number Diff line # Dynamically provisioned PVC: # A bucket or path inside bucket will be created automatically # for the PV and removed when the PV will be removed apiVersion: v1 kind: PersistentVolumeClaim metadata: Loading
pkg/driver/controllerserver.go +0 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,6 @@ func (cs *controllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol return nil, fmt.Errorf("failed to initialize S3 client: %s", err) } // FIXME Don't delete the bucket if it existed initially var deleteErr error if prefix == "" { // prefix is empty, we delete the whole bucket Loading