Skip to content
Snippets Groups Projects
Commit 0bc65497 authored by icefed's avatar icefed Committed by Sheng Yang
Browse files

Add comments

parent dc706c0f
Branches
Tags
No related merge requests found
...@@ -358,6 +358,8 @@ func (p *LocalPathProvisioner) createHelperPod(action ActionType, cmdsForPath [] ...@@ -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) _, err = p.kubeClient.CoreV1().Pods(p.namespace).Create(helperPod)
if err != nil && !k8serror.IsAlreadyExists(err) { if err != nil && !k8serror.IsAlreadyExists(err) {
return err return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment