Fix kubeconfig flag to be passed to executor

Change-Id: I6e9951785158cecfb952255426d8b5bb40be37ea
Closes: #366
Relates-To: #366
This commit is contained in:
Kostiantyn Kalynovskyi 2020-10-12 16:36:09 -05:00 committed by Kostyantyn Kalynovskyi
parent 03a1e28964
commit 7095d09de2

View File

@ -223,20 +223,22 @@ func (c *client) PhaseByID(id ifc.ID) (ifc.Phase, error) {
}
phase := &phase{
apiObj: phaseObj,
helper: c.Helper,
processor: c.processorFunc(),
registry: c.registry,
apiObj: phaseObj,
helper: c.Helper,
processor: c.processorFunc(),
registry: c.registry,
kubeconfig: c.kubeconfig,
}
return phase, nil
}
func (c *client) PhaseByAPIObj(phaseObj *v1alpha1.Phase) (ifc.Phase, error) {
phase := &phase{
apiObj: phaseObj,
helper: c.Helper,
processor: c.processorFunc(),
registry: c.registry,
apiObj: phaseObj,
helper: c.Helper,
processor: c.processorFunc(),
registry: c.registry,
kubeconfig: c.kubeconfig,
}
return phase, nil
}