Skip to content

Commit

Permalink
Add conditions to camel-k CRs #594 (fix PR review)
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Jul 10, 2019
1 parent 68df2fb commit cc339f7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/controller/integration/integration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
UpdateFunc: func(e event.UpdateEvent) bool {
oldIntegration := e.ObjectOld.(*v1alpha1.Integration)
newIntegration := e.ObjectNew.(*v1alpha1.Integration)

if oldIntegration.Status.Phase != newIntegration.Status.Phase {
Log.ForIntegration(newIntegration).Info(
"Phase transition",
"old-phase", oldIntegration.Status.Phase,
"new-phase", newIntegration.Status.Phase,
)
}
// Ignore updates to the integration status in which case metadata.Generation does not change,
// or except when the integration phase changes as it's used to transition from one phase
// to another
Expand Down

0 comments on commit cc339f7

Please sign in to comment.