mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
At present, endpoints and services are created for glusterfs pvcs are in form of glusterfs-dynamic-<PVC name> however this could cause issue if user deletes a PVC and immediately creates a new one with the same name, PV controller will try to delete the old PV and its endpoint and at the same the controller will try to create new PV and the same endpoint. Depending on which event reaches the controller first, it may create new PV, check that endpoints exists, then delete the old PVC and delete endpoints already used by the new PV. This patch changes the endpoint/service name to below format: `glusterfs-dynamic-<PVC UUID>`. By the uniqueness of UUID, above mentioned issue will no longer be present. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>