Skip to content

🐛 Instantiate kube index informers by default #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

sttts
Copy link
Member

@sttts sttts commented Apr 29, 2024

Our wrapper overrides the NewInformer method in order to create scopable cluster-aware shared index informers. But in normal, non-kcp mode we don't want that and instead instantiate a normal kube shared index informers, with traditional namespace/name keys without cluster name.

This matter when running a controller against one single workspace. Every object will have a kcp.io/cluster annotation, but we don't want it as part of the informer key.

@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 29, 2024
@sttts sttts changed the title 🐛 UPSTREAM: SQUASH: instantiate kube index informers by default 🐛 Instantiate kube index informers by default Apr 29, 2024
@sttts sttts force-pushed the sttts-kube-informer-by-default branch from 1ebacf2 to 6ef6466 Compare April 29, 2024 08:29
@kcp-ci-bot kcp-ci-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 29, 2024
@sttts sttts force-pushed the sttts-kube-informer-by-default branch 4 times, most recently from 0f0b2cc to edf9683 Compare April 29, 2024 08:50
@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 Apr 29, 2024
@sttts sttts force-pushed the sttts-kube-informer-by-default branch from edf9683 to e50f901 Compare April 29, 2024 09:45
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 Apr 29, 2024
@kcp-ci-bot
Copy link

LGTM label has been added.

Git tree hash: e707843ce631f6c881090c851f28522038f5f1a6

@kcp-ci-bot
Copy link

[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 Apr 29, 2024
@kcp-ci-bot kcp-ci-bot merged commit 2605363 into kcp-dev:kcp-0.17 Apr 29, 2024
5 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. lgtm Indicates that a PR is ready to be merged. 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