Skip to content

Only init conditions for enabled services in InitConditions#1916

Open
stuggi wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
stuggi:enabled_conditions
Open

Only init conditions for enabled services in InitConditions#1916
stuggi wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
stuggi:enabled_conditions

Conversation

@stuggi
Copy link
Copy Markdown
Contributor

@stuggi stuggi commented May 6, 2026

Previously, InitConditions() added Unknown conditions for ALL services regardless of whether they were enabled. When the controller short- circuited before reaching a disabled service's reconciler (e.g., during minor update gating), the disabled service's Unknown condition persisted and was mirrored to the Ready condition, producing misleading status like "Octavia not started" even when Octavia was disabled.

Only create conditions for services that are actually enabled. Always-on conditions (CAs, Version, Infrastructure, BackupConfig, Client, Ready) remain unconditional. The service reconcilers still handle the enabled-to-disabled transition by removing their conditions.

Previously, InitConditions() added Unknown conditions for ALL services
regardless of whether they were enabled. When the controller short-
circuited before reaching a disabled service's reconciler (e.g., during
minor update gating), the disabled service's Unknown condition persisted
and was mirrored to the Ready condition, producing misleading status
like "Octavia not started" even when Octavia was disabled.

Only create conditions for services that are actually enabled. Always-on
conditions (CAs, Version, Infrastructure, BackupConfig, Client, Ready)
remain unconditional. The service reconcilers still handle the
enabled-to-disabled transition by removing their conditions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@openshift-ci openshift-ci Bot requested review from abays and dprince May 6, 2026 13:03
@openshift-ci openshift-ci Bot added the approved label May 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

OpenStackControlPlane CRD Size Report

Metric Value
CRD JSON size 322464 bytes (315KB)
Base branch size 322464 bytes
Change +0.00%
Status yellow — growing
Threshold reference
Color Range Meaning
🟢 green < 300KB Comfortable
🟡 yellow 300–400KB Growing
🟠 orange 400–750KB Concerning
🔴 red > 750KB Approaching 1.5MB etcd limit (cut in half to allow space for update)

Copy link
Copy Markdown
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label May 6, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 6, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants