()
| 858 | } |
| 859 | |
| 860 | func (woc *wfOperationCtx) writeBackToInformer() error { |
| 861 | un, err := wfutil.ToUnstructured(woc.wf) |
| 862 | if err != nil { |
| 863 | return fmt.Errorf("failed to convert workflow to unstructured: %w", err) |
| 864 | } |
| 865 | err = woc.controller.wfInformer.GetStore().Update(un) |
| 866 | if err != nil { |
| 867 | return fmt.Errorf("failed to update informer store: %w", err) |
| 868 | } |
| 869 | return nil |
| 870 | } |
| 871 | |
| 872 | // persistWorkflowSizeLimitErr will fail a the workflow with an error when we hit the resource size limit |
| 873 | // See https://github.com/argoproj/argo-workflows/issues/913 |
no test coverage detected