Skip to content

Commit

Permalink
Pull reconciler.go changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kabicin committed Nov 21, 2024
1 parent 8f2a5f8 commit 43131c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func addStatusWarnings(ba common.BaseComponent) {
}

func getBaseReconcileInterval(s common.BaseComponentStatus) int32 {
baseIntervalInt, _ := strconv.Atoi(common.Config[common.OpConfigReconcileIntervalSeconds])
baseIntervalInt, _ := strconv.Atoi(common.LoadFromConfig(common.Config, common.OpConfigReconcileIntervalSeconds))
baseInterval := int32(baseIntervalInt)
s.SetReconcileInterval(&baseInterval)

Expand All @@ -215,7 +215,7 @@ func resetReconcileInterval(newCondition common.StatusCondition, s common.BaseCo

// Precondition: Operator config values for common.OpConfigReconcileIntervalSeconds and common.OpConfigReconcileIntervalPercentage must be integers
func updateReconcileInterval(maxSeconds int, oldCondition common.StatusCondition, newCondition common.StatusCondition, s common.BaseComponentStatus) time.Duration {
oldReconcileInterval := float64(*s.GetReconcileInterval())
var oldReconcileInterval int32

var newCount int32
count := oldCondition.GetUnchangedConditionCount()
Expand Down

0 comments on commit 43131c0

Please sign in to comment.