Skip to content

[release-0.7] Use the GroupVersion.Version instead of the resources' preferred version#177

Merged
kcp-ci-bot merged 1 commit into
kcp-dev:release-0.7from
kcp-ci-bot:cherry-pick-176-to-release-0.7
Jun 30, 2026
Merged

[release-0.7] Use the GroupVersion.Version instead of the resources' preferred version#177
kcp-ci-bot merged 1 commit into
kcp-dev:release-0.7from
kcp-ci-bot:cherry-pick-176-to-release-0.7

Conversation

@kcp-ci-bot

Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #176

/assign ntnn

NONE

APIResource.Version may be empty:
https://github.com/kubernetes/apimachinery/blob/6fa8dff7b19f13e310ef489972c8f394a9c185ad/pkg/apis/meta/v1/types.go#L1235-L1237

Additionally it reports the resources' preferred version, not the version it was listed for per APIResourceList.GroupVersion:
https://github.com/kubernetes/apimachinery/blob/master/pkg/apis/meta/v1/types.go

I believe this is irrelevant in most cases however we hit this when
using api-syncagent against resources provided by an aggregated API
server, which does not fill the .Version on the resource.

Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
@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. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Jun 30, 2026
@ntnn

ntnn commented Jun 30, 2026

Copy link
Copy Markdown
Member

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. lgtm Indicates that a PR is ready to be merged. labels Jun 30, 2026
@kcp-ci-bot

Copy link
Copy Markdown
Contributor Author

LGTM label has been added.

DetailsGit tree hash: 580c717312533808e2b62d3449f2d79d94cb6779

@ntnn

ntnn commented Jun 30, 2026

Copy link
Copy Markdown
Member

/kind bug

@kcp-ci-bot kcp-ci-bot added kind/bug Categorizes issue or PR as related to a bug. and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Jun 30, 2026
@ntnn

ntnn commented Jun 30, 2026

Copy link
Copy Markdown
Member

/lgtm
/approve

@xrstf

xrstf commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

/approve

@kcp-ci-bot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ntnn, xrstf

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 Jun 30, 2026
@kcp-ci-bot kcp-ci-bot merged commit 8aa28a7 into kcp-dev:release-0.7 Jun 30, 2026
12 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. 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-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants