PatchAppWithWriteBack patches an application and writes it back to the informer cache
(ctx context.Context, name, ns string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string)
| 1682 | |
| 1683 | // PatchAppWithWriteBack patches an application and writes it back to the informer cache |
| 1684 | func (ctrl *ApplicationController) PatchAppWithWriteBack(ctx context.Context, name, ns string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *appv1.Application, err error) { |
| 1685 | patchedApp, err := ctrl.applicationClientset.ArgoprojV1alpha1().Applications(ns).Patch(ctx, name, pt, data, opts, subresources...) |
| 1686 | if err != nil { |
| 1687 | return patchedApp, err |
| 1688 | } |
| 1689 | ctrl.writeBackToInformer(patchedApp) |
| 1690 | return patchedApp, err |
| 1691 | } |
| 1692 | |
| 1693 | func (ctrl *ApplicationController) processAppRefreshQueueItem() (processNext bool) { |
| 1694 | patchDuration := time.Duration(0) // time spent in doing patch/update calls |
no test coverage detected