Skip to content

Conversation

@xmudrii
Copy link
Member

@xmudrii xmudrii commented Jun 26, 2025

Summary

Partial cherry-pick of #3430

Fixes an issue with the virtual workspace OpenAPI v3 endpoint/implementation. If there's a resource with two different versions, it'll cause a panic because we try to register the same GR (GroupResource) twice.

What Type of PR Is This?

/kind bug

Release Notes

Fix a panic in the OpenAPI v3 endpoint for Virtual Workspaces happening if there's a resource with two or more versions

/assign @xrstf @embik

@kcp-ci-bot kcp-ci-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jun 26, 2025
@kcp-ci-bot kcp-ci-bot added kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 26, 2025
@xmudrii xmudrii changed the title [release-0.27] Fix virutal workspace OpenAPI v3 endpoint panics 🐛 [release-0.27] Fix virutal workspace OpenAPI v3 endpoint panics Jun 26, 2025
Copy link
Member

@embik embik left a comment

Choose a reason for hiding this comment

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

/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 27, 2025
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c8639409fa671bd3dd8acdac384154d6e71f7137

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik

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

The pull request process is described here

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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 27, 2025
@kcp-ci-bot kcp-ci-bot merged commit d2eb197 into kcp-dev:release-0.27 Jun 27, 2025
16 of 17 checks passed
@xmudrii xmudrii deleted the fix-openapi-panics branch June 27, 2025 20:11
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. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants