Skip to content

OCM-21381 | fix: Change regex to support new ID convention#3142

Merged
hunterkepley merged 1 commit intoopenshift:masterfrom
hunterkepley:ocm-21381
Dec 13, 2025
Merged

OCM-21381 | fix: Change regex to support new ID convention#3142
hunterkepley merged 1 commit intoopenshift:masterfrom
hunterkepley:ocm-21381

Conversation

@hunterkepley
Copy link
Contributor

@hunterkepley hunterkepley commented Dec 12, 2025

Some reason the IDs were changed in the API today from normal cluster-style IDs to External ID style IDs

IE it went from 2n4b8f8ai80cs6kmjmdgqlqplh73r411 to 8ea363cb-85b7-44ee-a834-ade89d9adbd2

This MR adds new regex to satisfy this unexpected change

the new regex is backwards compatible with the old ID convention, so there's no risk with this change if it is deemed a bug in the API and changed back

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 12, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hunterkepley

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 Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 12, 2025
@nephomaniac
Copy link
Contributor

The new regex looks good, and should match the entire string of a lower case internal or external cluster id.

@hunterkepley hunterkepley merged commit 8001aa1 into openshift:master Dec 13, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants