From 0bc654974e0c4f64b09e868413bf98334185955a Mon Sep 17 00:00:00 2001 From: icefed <zlwangel@gmail.com> Date: Thu, 5 Sep 2019 09:13:34 +0800 Subject: [PATCH] Add comments --- provisioner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/provisioner.go b/provisioner.go index 24c9ccf8..c9c63cd7 100644 --- a/provisioner.go +++ b/provisioner.go @@ -358,6 +358,8 @@ func (p *LocalPathProvisioner) createHelperPod(action ActionType, cmdsForPath [] }, } + // If it already exists due to some previous errors, the pod will be cleaned up later automatically + // https://github.com/rancher/local-path-provisioner/issues/27 _, err = p.kubeClient.CoreV1().Pods(p.namespace).Create(helperPod) if err != nil && !k8serror.IsAlreadyExists(err) { return err -- GitLab