mirror of https://github.com/knative/pkg.git
				
				
				
			don't pre/post process if skipstatusupdate (#1625)
This commit is contained in:
		
							parent
							
								
									0e023a2069
								
							
						
					
					
						commit
						2eaf40292b
					
				| 
						 | 
					@ -421,7 +421,9 @@ func (r *reconcilerImpl) Reconcile(ctx {{.contextContext|raw}}, key string) erro
 | 
				
			||||||
			return {{.fmtErrorf|raw}}("failed to set finalizers: %w", err)
 | 
								return {{.fmtErrorf|raw}}("failed to set finalizers: %w", err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		{{if .isKRShaped}}
 | 
							{{if .isKRShaped}}
 | 
				
			||||||
 | 
							if !r.skipStatusUpdates {
 | 
				
			||||||
			reconciler.PreProcessReconcile(ctx, resource)
 | 
								reconciler.PreProcessReconcile(ctx, resource)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		{{end}}
 | 
							{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Reconcile this copy of the resource and then write back any status
 | 
							// Reconcile this copy of the resource and then write back any status
 | 
				
			||||||
| 
						 | 
					@ -429,7 +431,9 @@ func (r *reconcilerImpl) Reconcile(ctx {{.contextContext|raw}}, key string) erro
 | 
				
			||||||
		reconcileEvent = do(ctx, resource)
 | 
							reconcileEvent = do(ctx, resource)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		{{if .isKRShaped}}
 | 
							{{if .isKRShaped}}
 | 
				
			||||||
 | 
							if !r.skipStatusUpdates {
 | 
				
			||||||
			reconciler.PostProcessReconcile(ctx, resource, original)
 | 
								reconciler.PostProcessReconcile(ctx, resource, original)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		{{end}}
 | 
							{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	case {{.doFinalizeKind|raw}}:
 | 
						case {{.doFinalizeKind|raw}}:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue