Skip to content

Commit

Permalink
move instance update logic out of reconcileServiceInstanceDelete (ope…
Browse files Browse the repository at this point in the history
  • Loading branch information
kibbles-n-bytes authored and Ville Aikas committed Nov 17, 2017
1 parent 7ef5a3e commit 0bcbc7d
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 265 deletions.
9 changes: 9 additions & 0 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,3 +627,12 @@ func NewClientConfigurationForBroker(broker *v1beta1.ClusterServiceBroker, authC
clientConfig.CAData = broker.Spec.CABundle
return clientConfig
}

// reconciliationRetryDurationExceeded returns whether the given operation
// start time has exceeded the controller's set reconciliation retry duration.
func (c *controller) reconciliationRetryDurationExceeded(operationStartTime *metav1.Time) bool {
if time.Now().Before(operationStartTime.Time.Add(c.reconciliationRetryDuration)) {
return false
}
return true
}
Loading

0 comments on commit 0bcbc7d

Please sign in to comment.