Skip to content

Fix restMapper for core kcp resources - #4298

Merged
kcp-ci-bot merged 2 commits into
kcp-dev:mainfrom
mjudeikis:fix.restmapper
Jul 31, 2026
Merged

Fix restMapper for core kcp resources#4298
kcp-ci-bot merged 2 commits into
kcp-dev:mainfrom
mjudeikis:fix.restmapper

Conversation

@mjudeikis

@mjudeikis mjudeikis commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

What Type of PR Is This?

/kind bug

We should fix this api incosistency, but as api is in the wild - we need this hack

Related Issue(s)

Fixes #

Release Notes

Fix dynamic-restmapper when dealing with multi-version apis, where different object might not exists in v2 but does in v1

@kcp-ci-bot kcp-ci-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 31, 2026

@ntnn ntnn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2026
@kcp-ci-bot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 3fcc8b07b02795228d8a0df714179ede230a022e

@kcp-ci-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ntnn

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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 31, 2026

@neolit123 neolit123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

might be worth adding a UT?

@kcp-ci-bot kcp-ci-bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2026
@kcp-ci-bot
kcp-ci-bot requested a review from ntnn July 31, 2026 11:13
@kcp-ci-bot kcp-ci-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. labels Jul 31, 2026
@mjudeikis

Copy link
Copy Markdown
Contributor Author

UT

What is UT?

@ntnn

ntnn commented Jul 31, 2026

Copy link
Copy Markdown
Member

Man... that is ugly. I'm thinking if it wouldn't be better to just fix the APIs now. If we copy the v1alpha1 kinds up to v1alpha2 the bug should also be fixed and we don't break kube convention?

@ntnn ntnn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2026
@kcp-ci-bot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: f99a4cdac499e4dadf4ebadf3ac6f5810a852251

@kcp-ci-bot
kcp-ci-bot merged commit 8b3b424 into kcp-dev:main Jul 31, 2026
16 checks passed
@neolit123

Copy link
Copy Markdown
Contributor

UT

What is UT?

unit tests. i see that you added some in commit 2.

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