Skip to content

Commit

Permalink
fix(controller): Add configmap already exists judgment on offload Env…
Browse files Browse the repository at this point in the history
…VarTemplate

Signed-off-by: Yuping Fan <[email protected]>
  • Loading branch information
fyp711 committed Oct 15, 2024
1 parent 0dfecd6 commit fcb5c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/workflowpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func (woc *wfOperationCtx) createWorkflowPod(ctx context.Context, nodeName strin
},
}
created, err := woc.controller.kubeclientset.CoreV1().ConfigMaps(woc.wf.ObjectMeta.Namespace).Create(ctx, cm, metav1.CreateOptions{})
if err != nil {
if err != nil && !apierr.IsAlreadyExists(err) {
return nil, err
}
woc.log.Infof("Created configmap: %s", created.Name)
Expand Down

0 comments on commit fcb5c08

Please sign in to comment.