Skip to content

Conversation

@dmvolod
Copy link
Member

@dmvolod dmvolod commented Apr 24, 2025

What this PR does / why we need it:
This fix allows to export web-hook code for use in external projects as well as controllers code.
This is the same approach as Cluster API web-hooks exporting, when you need to compile code that will include all controllers and their logic, such as web-hooks, in a single binary file.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 24, 2025
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 24, 2025
@k8s-ci-robot k8s-ci-robot requested a review from chrischdi April 24, 2025 06:58
Copy link
Member

@chrischdi chrischdi 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

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 12, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c962eed95b46dba93fadd1b92e35c54412996239

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrischdi

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 12, 2025
@k8s-ci-robot k8s-ci-robot merged commit 6255a62 into kubernetes-sigs:main May 12, 2025
15 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.14 milestone May 12, 2025
@dmvolod
Copy link
Member Author

dmvolod commented May 12, 2025

/cherry-pick release-1.11

@k8s-infra-cherrypick-robot

@dmvolod: new pull request created: #3454

In response to this:

/cherry-pick release-1.11

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.

@dmvolod
Copy link
Member Author

dmvolod commented May 12, 2025

/cherry-pick release-1.12

@k8s-infra-cherrypick-robot

@dmvolod: new pull request created: #3455

In response to this:

/cherry-pick release-1.12

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.

@dmvolod
Copy link
Member Author

dmvolod commented May 12, 2025

/cherry-pick release-1.13

@k8s-infra-cherrypick-robot

@dmvolod: new pull request created: #3456

In response to this:

/cherry-pick release-1.13

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.

@sbueringer
Copy link
Member

/assign

Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

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

@dmvolod please follow-up on the findings. I'll then merge through all PRs

)

// VSphereClusterTemplateWebhook implements a validation and defaulting webhook for VSphereClusterTemplate.
type VSphereClusterTemplateWebhook struct{}
Copy link
Member

Choose a reason for hiding this comment

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

Should not have a "Webhook" suffix because the package already contains webhooks. (also for all other webhooks)

"sigs.k8s.io/cluster-api-provider-vsphere/internal/webhooks"
)

// VSphereClusterTemplateWebhook implements a validation and defaulting webhook for VSphereClusterTemplate.
Copy link
Member

Choose a reason for hiding this comment

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

This is not correct as it doesn't implement a defaulting webhook. Let's drop this detail here to avoid having to keep that in sync

// VSphereClusterTemplateWebhook implements a webhook for VSphereClusterTemplate.

(also for all other webhooks)

@dmvolod
Copy link
Member Author

dmvolod commented May 12, 2025

@dmvolod please follow-up on the findings. I'll then merge through all PRs

Yes, sure, @sbueringer
I will create a separate PR for this fix. Also we need to merge all backport PRs and than create a separate PRs for this fix

@sbueringer
Copy link
Member

@dmvolod please follow-up on the findings. I'll then merge through all PRs

Yes, sure, @sbueringer I will create a separate PR for this fix.

Thx

Also we need to merge all backport PRs and than create a separate PRs for this fix

Yeah, no worries. I'll take care of all of that

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", 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.

6 participants