Skip to content

Commit

Permalink
Merge pull request #400 from dprince/observed_generation_fix
Browse files Browse the repository at this point in the history
Set ObservedGeneration after condition init
  • Loading branch information
openshift-merge-bot[bot] committed Apr 15, 2024
2 parents 850399d + ca37e0f commit 962427f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/keystoneapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ func (r *KeystoneAPIReconciler) Reconcile(ctx context.Context, req ctrl.Request)
)

instance.Status.Conditions.Init(&cl)
instance.Status.ObservedGeneration = instance.Generation

if instance.Status.Hash == nil {
instance.Status.Hash = map[string]string{}
Expand Down Expand Up @@ -1092,7 +1093,6 @@ func (r *KeystoneAPIReconciler) reconcileNormal(
}

l.Info("Reconciled Service successfully")
instance.Status.ObservedGeneration = instance.Generation
return ctrl.Result{}, nil
}

Expand Down

0 comments on commit 962427f

Please sign in to comment.