Skip to content

Commit 7084669

Browse files
committed
Iter
1 parent 94df738 commit 7084669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/deployment/reconcile/action_license_generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (a *actionLicenseGenerate) Start(ctx context.Context) (bool, error) {
163163
expires := time.Now().Add(expiration)
164164

165165
if expires.After(license.Expires()) {
166-
// License will expire before grace period, reduce to 90%
166+
// License will expire before grace period, reduce to 75%
167167
expires = time.Now().Add(time.Duration(math.Round(float64(time.Until(license.Expires())) * api.LicenseExpirationGraceRatio)))
168168
}
169169

pkg/deployment/reconcile/plan_builder_license.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func (r *Reconciler) updateClusterLicenseAPI(ctx context.Context, spec api.Deplo
228228
return api.Plan{actions.NewClusterAction(api.ActionTypeLicenseClean, "Removing license reference - Invalid Hash")}
229229
}
230230

231-
if status.License.Regenerate.After(time.Now()) {
231+
if status.License.Regenerate.Time.Before(time.Now()) {
232232
return api.Plan{actions.NewClusterAction(api.ActionTypeLicenseClean, "Removing license reference - Regeneration Required")}
233233
}
234234

0 commit comments

Comments
 (0)