Skip to content

Add Conditions to our Resource Types#5214

Draft
bennerv wants to merge 2 commits into
mainfrom
bvesel/add-conditions-to-resource-types
Draft

Add Conditions to our Resource Types#5214
bennerv wants to merge 2 commits into
mainfrom
bvesel/add-conditions-to-resource-types

Conversation

@bennerv
Copy link
Copy Markdown
Member

@bennerv bennerv commented May 11, 2026

What

Adds read only conditions to our resource types to expose status information to the customer

Why

Exposes status information to the customer.

Testing

Special notes for your reviewer

  • removes condition for externalAuth resource type, uses conditions instead
  • matches k8s lengths for conditions for conditions
  • drops any customer-provided read-only properties for condition (existing external auth) and conditions (new field)

TODO

  • ARM API sign-off
  • validation on write of the regex / lengths

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 11, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 11, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bennerv

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

@bennerv bennerv mentioned this pull request May 11, 2026
@bennerv
Copy link
Copy Markdown
Member Author

bennerv commented May 11, 2026

missing examples, generating them.

@bennerv bennerv force-pushed the bvesel/add-conditions-to-resource-types branch from 6c09730 to 8eec46d Compare May 11, 2026 20:19
bennerv and others added 2 commits May 11, 2026 16:38
The ExternalAuth Condition field is read-only (server-managed) and
should not be converted from client input. Remove the conversion from
ConvertToInternal in v20240610preview and v20251223preview, and zero
the field in fuzz tests since it no longer round-trips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds read-only conditions (following Kubernetes status.conditions
conventions) to HCPOpenShiftCluster, NodePool, and ExternalAuth
resource types under a new API version 2026-05-31-preview.

Conditions use a generic Condition model with ConditionType union
(Available, Degraded, Progressing) shared across all resource types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bennerv bennerv force-pushed the bvesel/add-conditions-to-resource-types branch from 8eec46d to 82f951f Compare May 11, 2026 20:41
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.

1 participant