Skip to content

defer informer creation for vap params#4103

Merged
kcp-ci-bot merged 3 commits intokcp-dev:mainfrom
SimonTheLeg:vap-param-informers
May 8, 2026
Merged

defer informer creation for vap params#4103
kcp-ci-bot merged 3 commits intokcp-dev:mainfrom
SimonTheLeg:vap-param-informers

Conversation

@SimonTheLeg
Copy link
Copy Markdown
Member

@SimonTheLeg SimonTheLeg commented May 5, 2026

Summary

This PR fixes an issue when using VAP with parameters and enables full usage for single shards, both for VAP inside the same workspace and VAP in a different workspace, where the APIExport resides. Implementation for multi-shard is tracked in #4110

What Type of PR Is This?

/kind bug

Related Issue(s)

Fixes #

Release Notes

NONE

On-behalf-of: SAP <simon.bein@sap.com>
Signed-off-by: Simon Bein <simontheleg@gmail.com>
On-behalf-of: SAP <simon.bein@sap.com>
Signed-off-by: Simon Bein <simontheleg@gmail.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. kind/bug Categorizes issue or PR as related to a bug. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 5, 2026
@mjudeikis mjudeikis changed the title defer informer creation for vap params [wip] defer informer creation for vap params May 6, 2026
@kcp-ci-bot kcp-ci-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 6, 2026
@gman0
Copy link
Copy Markdown
Contributor

gman0 commented May 6, 2026

The main problem is that the params resource is on another shard, and the informer for params points to the local shard. So the instance of the VAP plugin on this shard cannot find the resource:

plugin.SetDynamicClient(k.dynamicClusterClient.Cluster(policyClusterName.Path()))

On-behalf-of: SAP <simon.bein@sap.com>
Signed-off-by: Simon Bein <simontheleg@gmail.com>
@kcp-ci-bot kcp-ci-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 8, 2026
@SimonTheLeg SimonTheLeg changed the title [wip] defer informer creation for vap params defer informer creation for vap params May 8, 2026
@kcp-ci-bot kcp-ci-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 8, 2026
@SimonTheLeg SimonTheLeg linked an issue May 8, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@mjudeikis mjudeikis 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
/cherry-pick release-0.31
Please create follow-up issue for this

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label May 8, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 5a07e4cf7ef0cacdaebc991ef579fc89d3b8155e

@kcp-ci-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

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 8, 2026
@kcp-ci-bot kcp-ci-bot merged commit 6418e37 into kcp-dev:main May 8, 2026
14 checks passed
@SimonTheLeg
Copy link
Copy Markdown
Member Author

@mjudeikis follow up has been created and is linked in the description

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/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API 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/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.

NPE in VAP in kcp

4 participants