MCPcopy
hub / github.com/argoproj/argo-workflows / writeBackToInformer

Method writeBackToInformer

workflow/controller/operator.go:860–870  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

858}
859
860func (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

Callers 1

persistUpdatesMethod · 0.95

Calls 2

GetStoreMethod · 0.80
UpdateMethod · 0.65

Tested by

no test coverage detected