Skip to content
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

🐛 admission/webhooks: set kcp.io/cluster annotation on create #3124

Merged
merged 1 commit into from
May 3, 2024

Conversation

sttts
Copy link
Member

@sttts sttts commented May 2, 2024

Summary

On webhook admission on create, it is unclear where the object comes from. This PR sets the kcp.io/cluster annotation on webhook dispatch.

Release Notes

Set the kcp.io/cluster annotation on objects passed to an admission webhook on create.

@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/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 2, 2024
@sttts sttts force-pushed the sttts-admission-cluster-annotation branch from 2ea562c to c707d7f Compare May 2, 2024 12:24
@kcp-ci-bot kcp-ci-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 2, 2024
@sttts sttts changed the title <!-- Thanks for creating a pull request! 🐛 admission/webhooks: set kcp.io/cluster annotation on create May 2, 2024
@kcp-ci-bot kcp-ci-bot removed the release-note-none Denotes a PR that doesn't merit a release note. label May 2, 2024
@mjudeikis
Copy link
Contributor

/lgtm
/approve
tests are red but code looks ok

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

LGTM label has been added.

Git tree hash: 13a9f6f4e04ea76f89d809f9980102e6db5796d6

@kcp-ci-bot
Copy link
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

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 2, 2024
@sttts
Copy link
Member Author

sttts commented May 2, 2024

No test logs.

/retest

@sttts
Copy link
Member Author

sttts commented May 2, 2024

Infra.

/retest

@sttts sttts force-pushed the sttts-admission-cluster-annotation branch from c707d7f to ed83394 Compare May 2, 2024 15:28
@kcp-ci-bot kcp-ci-bot removed the lgtm Indicates that a PR is ready to be merged. label May 2, 2024
@kcp-ci-bot kcp-ci-bot requested a review from mjudeikis May 2, 2024 15:28
@mjudeikis
Copy link
Contributor

/lgtm

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

LGTM label has been added.

Git tree hash: d40d4496729581d251694cb0dce550e0e8fb79fd

@sttts sttts force-pushed the sttts-admission-cluster-annotation branch from ed83394 to 31b90ee Compare May 2, 2024 15:37
@kcp-ci-bot kcp-ci-bot removed the lgtm Indicates that a PR is ready to be merged. label May 2, 2024
@sttts sttts force-pushed the sttts-admission-cluster-annotation branch from 31b90ee to 4d27de9 Compare May 2, 2024 16:38
@kcp-ci-bot kcp-ci-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 2, 2024
@sttts sttts force-pushed the sttts-admission-cluster-annotation branch from 4d27de9 to bf20436 Compare May 2, 2024 16:50
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
@sttts sttts force-pushed the sttts-admission-cluster-annotation branch from bf20436 to d7bf892 Compare May 2, 2024 18:37
@mjudeikis
Copy link
Contributor

/lgtm

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

LGTM label has been added.

Git tree hash: 6a467e74a633e5e222eeccccc3c59d987ff0d762

@kcp-ci-bot kcp-ci-bot merged commit 0939cbe into kcp-dev:main May 3, 2024
16 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/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API 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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants