mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-30 08:16:23 +08:00
uncommented output artifacts code as it was commented out during testing.
This commit is contained in:
@@ -145,14 +145,14 @@ func (c *Client) injectAutomatedFields(namespace string, wf *wfv1.Workflow, opts
|
||||
})
|
||||
|
||||
// Always add output artifacts for metrics but make them optional
|
||||
//wf.Spec.Templates[i].Outputs.Artifacts = append(template.Outputs.Artifacts, wfv1.Artifact{
|
||||
// Name: "sys-metrics",
|
||||
// Path: "/tmp/sys-metrics.json",
|
||||
// Optional: true,
|
||||
// Archive: &wfv1.ArchiveStrategy{
|
||||
// None: &wfv1.NoneStrategy{},
|
||||
// },
|
||||
//})
|
||||
wf.Spec.Templates[i].Outputs.Artifacts = append(template.Outputs.Artifacts, wfv1.Artifact{
|
||||
Name: "sys-metrics",
|
||||
Path: "/tmp/sys-metrics.json",
|
||||
Optional: true,
|
||||
Archive: &wfv1.ArchiveStrategy{
|
||||
None: &wfv1.NoneStrategy{},
|
||||
},
|
||||
})
|
||||
|
||||
if !addSecretValsToTemplate {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user