Skip to content

Add IsReadyForInput to statefulset and deployment packages - #733

Open
lmiccini wants to merge 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:ensure-fresh
Open

Add IsReadyForInput to statefulset and deployment packages#733
lmiccini wants to merge 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:ensure-fresh

Conversation

@lmiccini

@lmiccini lmiccini commented Aug 13, 2026

Copy link
Copy Markdown
Contributor
Each package now exposes IsReadyForInput, which reads the workload
directly from a client.Reader (typically an uncached API reader) and
confirms that the rollout is complete AND the pod template carries a
CONFIG_HASH environment variable matching the expected value.

This lets child controllers verify their StatefulSet/Deployment is
truly running the desired configuration before reporting readiness,
eliminating the informer cache race where stale status could cause a
parent to release credential finalizers prematurely.

@lmiccini lmiccini changed the title Add EnsureFresh helper to bypass informer cache during rotation Add IsReadyForInput to statefulset and deployment packages Aug 14, 2026
Each package now exposes IsReadyForInput, which reads the workload
directly from a client.Reader (typically an uncached API reader) and
confirms that the rollout is complete AND the pod template carries a
CONFIG_HASH environment variable matching the expected value.

This lets child controllers verify their StatefulSet/Deployment is
truly running the desired configuration before reporting readiness,
eliminating the informer cache race where stale status could cause a
parent to release credential finalizers prematurely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant