mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-19 03:44:34 +08:00
Fixing typo with GC Strategy.
This commit is contained in:
@@ -54,12 +54,12 @@ func (c *Client) create(namespace string, wf *Workflow, opts *WorkflowOptions) (
|
||||
}
|
||||
|
||||
//TODO - Load this data from onepanel config-map or secret
|
||||
podGCStrategy := env.GetEnv("ARGO_POD_GC_STRATEGY", "onPodCompletion")
|
||||
podGCStrategy := env.GetEnv("ARGO_POD_GC_STRATEGY", "OnPodCompletion")
|
||||
if podGCStrategy != "" {
|
||||
strategy := PodGCStrategy(podGCStrategy)
|
||||
opts.PodGCStrategy = &strategy
|
||||
} else {
|
||||
strategy := PodGCStrategy("onPodCompletion")
|
||||
strategy := PodGCStrategy("OnPodCompletion")
|
||||
opts.PodGCStrategy = &strategy
|
||||
}
|
||||
if opts.Name != "" {
|
||||
|
Reference in New Issue
Block a user