// UpdateStatus updates AppDeployment's Status with retry.RetryOnConflict
UpdateStatus updates AppDeployment's Status with retry.RetryOnConflict
// UpdateStatus updates AppDeployment ' s Status with retry . RetryOnConflict
func (r *Reconciler) updateStatus(ctx context.Context, appd *oamcore.AppDeployment, opts ...client.UpdateOption) error {
	status := appd.DeepCopy().Status
	return retry.RetryOnConflict(retry.DefaultBackoff, func() (err error) {
		if err = r.Client.Get(ctx, client.ObjectKey{Namespace: appd.Namespace, Name: appd.Name}, appd); err != nil {
			return
		}
		appd.Status = status
		return r.Client.Status().Update(ctx, appd, opts...)
	})
}
func ( r * Reconciler ) updateStatus ( ctx context . Context , appd * oamcore . AppDeployment , opts ... client . UpdateOption ) error { status := appd . DeepCopy ( ) . Status return retry . RetryOnConflict ( retry . DefaultBackoff , func ( ) ( err error ) { if err = r . Client . Get ( ctx , client . ObjectKey { Namespace : appd . Namespace , Name : appd . Name } , appd ) ; err != nil { return } appd . Status = status return r . Client . Status ( ) . Update ( ctx , appd , opts ... ) } ) }
UpdateStatus updates AppDeployment's Status with retry.RetryOnConflict
UpdateStatus updates AppDeployment ' s Status with retry . RetryOnConflict