Skip to content
Snippets Groups Projects
Commit d4f71b4b authored by Bohdan Tkachenko's avatar Bohdan Tkachenko Committed by Derek Su
Browse files

fix: do not override nodeName, if exists

If nodeName was already provided in helperPod.yaml, avoid overriding it.
Fixes #498
parent faf52578
Branches
Tags
No related merge requests found
......@@ -664,7 +664,7 @@ func (p *LocalPathProvisioner) createHelperPod(action ActionType, cmd []string,
helperPod.Name = helperPod.Name[:HelperPodNameMaxLength]
}
helperPod.Namespace = p.namespace
if o.Node != "" {
if helperPod.Spec.NodeName == "" && o.Node != "" {
helperPod.Spec.NodeName = o.Node
}
helperPod.Spec.ServiceAccountName = p.serviceAccountName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment