Make NodePublish mount idempotent #955
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
/kind bug
What happened? as of kubernetes 1.20, kubelet doesn't check if the target path exists or is mounted for us kubernetes/kubernetes#88759 . path existence should be idempotent i.e. if path already exists, NodeStage/NodePublish should not error. mount should be idempotent i.e. if the thing that's supposed to be mounted at the path is already there then NodeStage/NodePublish should not error
NodeStage:
aws-ebs-csi-driver/pkg/driver/node.go
Line 175 in 951bafe
aws-ebs-csi-driver/pkg/driver/node.go
Line 203 in 951bafe
NodePublish*:
aws-ebs-csi-driver/pkg/driver/mount_linux.go
Line 56 in 951bafe
aws-ebs-csi-driver/pkg/driver/node.go
Line 627 in 951bafe
What you expected to happen?
How to reproduce it (as minimally and precisely as possible)?
Anything else we need to know?:
Environment
kubectl version
):The text was updated successfully, but these errors were encountered: