make argo.Client a parameter

This commit is contained in:
rushtehrani
2019-12-10 19:32:58 -08:00
parent b421c63073
commit b83fe89f6e
6 changed files with 32 additions and 37 deletions

View File

@@ -13,6 +13,7 @@ type Parameter = wfv1.Parameter
type Options struct {
Name string
Namespace string
GeneratedName string
Entrypoint string
Parameters []Parameter
@@ -72,7 +73,7 @@ func (c *Client) create(wf *Workflow, opts *Options) (createdWorkflow *Workflow,
wf.Spec.Arguments.Parameters = newParams
}
createdWorkflow, err = c.WorkflowInterface.Create(wf)
createdWorkflow, err = c.Clientset.ArgoprojV1alpha1().Workflows(opts.Namespace).Create(wf)
if err != nil {
return nil, err
}