Skip to content

Commit

Permalink
minor fixes in comments of developeraccountCRD reconcilliation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Feb 8, 2021
1 parent 8530a91 commit e0dc60a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ func (s *DeveloperAccountStatusReconciler) calculateStatus() (*capabilitiesv1bet
ObservedGeneration: s.resource.Status.ObservedGeneration,
}

// If there is an error and s.remoteDeveloperAccount is nil
// ID is not changed, as it is initialized with previous values d
if s.remoteDeveloperAccount != nil {
newStatus.ID = s.remoteDeveloperAccount.Element.ID
newStatus.AccountState = s.remoteDeveloperAccount.Element.State
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (s *DeveloperAccountThreescaleReconciler) syncDeveloperAccount(devAccount *
deltaAccount.Element.MonthlyBillingEnabled = &desiredMonthlyBillingEnabled
}

// MonthlyChargingEnabled defaults to False
// MonthlyChargingEnabled defaults to True
desiredMonthlyChargingEnabled := true
if s.resource.Spec.MonthlyChargingEnabled != nil {
desiredMonthlyChargingEnabled = *s.resource.Spec.MonthlyChargingEnabled
Expand Down

0 comments on commit e0dc60a

Please sign in to comment.