Skip to content

Fixup openapi controller eviction#4142

Open
mjudeikis wants to merge 3 commits into
kcp-dev:mainfrom
mjudeikis:fix.leak.3
Open

Fixup openapi controller eviction#4142
mjudeikis wants to merge 3 commits into
kcp-dev:mainfrom
mjudeikis:fix.leak.3

Conversation

@mjudeikis
Copy link
Copy Markdown
Contributor

Summary

Fix openapi controller evictions of the clusters.

What Type of PR Is This?

/kind bug

Related Issue(s)

Fixes #

Release Notes

Fix openapi controller evictions

@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. 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 May 21, 2026
Comment thread pkg/server/openapiv3_evictor.go Outdated
// event being observed and ordered before the LogicalCluster delete. When that
// ordering breaks the bucket leaks 100KB–1MB per CRD version forever. See
// https://github.com/kcp-dev/kcp/issues/4071.
func installOpenAPIV3Evictor(informer corev1alpha1informers.LogicalClusterClusterInformer, controller *openapiv3.Controller) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This function is getting very similar to the ones in other prs. will need to unify them as follow-up

Comment thread pkg/server/openapiv3/controller_test.go Outdated
"another": {"crd-c": {"v1": cached.Static(&spec3.OpenAPI{}, "etag")}},
},
}
c.lock = sync.Mutex{}
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.

This is a noop, or?

@ntnn ntnn added this to tbd May 21, 2026
@ntnn ntnn moved this to Reviewing in tbd May 21, 2026
Remove mutex initialization before EvictCluster call.
Copy link
Copy Markdown
Member

@ntnn ntnn left a comment

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 May 22, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: d801b1a7c0db914ba3b591c744aa9141891b8448

@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 May 22, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor

@mjudeikis: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kcp-test-unit 92d568f link true /test pull-kcp-test-unit
pull-kcp-lint 92d568f link true /test pull-kcp-lint

Full PR test history

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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.

3 participants