Skip to content

Require all pods updated before reporting IsReady#704

Merged
stuggi merged 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:transport-secret-consumer-finalizer
Jun 17, 2026
Merged

Require all pods updated before reporting IsReady#704
stuggi merged 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:transport-secret-consumer-finalizer

Conversation

@lmiccini

Copy link
Copy Markdown
Contributor

During rolling updates, ReadyReplicas can match the desired count while UpdatedReplicas lags behind — old pods are still ready but running stale config. Add UpdatedReplicas == Spec.Replicas to both deployment.IsReady() and statefulset.IsReady() so consumers (e.g. transport secret rotation guards) don't act on stale readiness.

During rolling updates, ReadyReplicas can match the desired count while
UpdatedReplicas lags behind — old pods are still ready but running stale
config. Add UpdatedReplicas == Spec.Replicas to both deployment.IsReady()
and statefulset.IsReady() so consumers (e.g. transport secret rotation
guards) don't act on stale readiness.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@stuggi stuggi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@stuggi stuggi merged commit e6e62be into openstack-k8s-operators:main Jun 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants