Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#512 from fmount/obs_gen
Browse files Browse the repository at this point in the history
Fix ObsGen condition
  • Loading branch information
openshift-merge-bot[bot] authored Apr 17, 2024
2 parents 8b92273 + 600de19 commit 4dca406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/glanceapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ func (r *GlanceAPIReconciler) reconcileNormal(ctx context.Context, instance *gla
return ctrlResult, nil
}

if depl.GetStatefulSet().Generation <= depl.GetStatefulSet().Status.ObservedGeneration {
if depl.GetStatefulSet().Generation == depl.GetStatefulSet().Status.ObservedGeneration {
instance.Status.ReadyCount = depl.GetStatefulSet().Status.ReadyReplicas
// verify if network attachment matches expectations
networkReady := false
Expand Down

0 comments on commit 4dca406

Please sign in to comment.