mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-19 11:55:08 +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
|
//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 != "" {
|
if podGCStrategy != "" {
|
||||||
strategy := PodGCStrategy(podGCStrategy)
|
strategy := PodGCStrategy(podGCStrategy)
|
||||||
opts.PodGCStrategy = &strategy
|
opts.PodGCStrategy = &strategy
|
||||||
} else {
|
} else {
|
||||||
strategy := PodGCStrategy("onPodCompletion")
|
strategy := PodGCStrategy("OnPodCompletion")
|
||||||
opts.PodGCStrategy = &strategy
|
opts.PodGCStrategy = &strategy
|
||||||
}
|
}
|
||||||
if opts.Name != "" {
|
if opts.Name != "" {
|
||||||
|
Reference in New Issue
Block a user