mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-27 23:31:27 +08:00
Added TerminateCronWorkflow endpoint.
- Also updated CronWorkflow message to include the name of the cron workflow. - Updated related function that parses and sets the struct values, to include the name attribute
This commit is contained in:
@@ -203,6 +203,11 @@ func (c *Client) createCronWorkflow(namespace string, cwf *wfv1.CronWorkflow, op
|
||||
return
|
||||
}
|
||||
|
||||
func (c *Client) TerminateCronWorkflow(namespace, name string) (err error) {
|
||||
err = c.ArgoprojV1alpha1().CronWorkflows(namespace).Delete(name, nil)
|
||||
return
|
||||
}
|
||||
|
||||
func unmarshalCronWorkflows(cwfBytes []byte, strict bool) (cwfs wfv1.CronWorkflow, err error) {
|
||||
var cwf wfv1.CronWorkflow
|
||||
var jsonOpts []argojson.JSONOpt
|
||||
|
||||
Reference in New Issue
Block a user