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

Add a webhook for import and upload populator CRs #2707

Merged
merged 2 commits into from
May 10, 2023

Conversation

alromeros
Copy link
Collaborator

@alromeros alromeros commented May 5, 2023

What this PR does / why we need it:

This Pull Request implements a new webhook to validate the creation and update of volumeimportsources and volumeuploadsources.

Special notes for your reviewer:

Release note:

Implement webhooks for upload and import populator CRs

@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XXL labels May 5, 2023
@alromeros alromeros force-pushed the populators-webhook branch 2 times, most recently from 40fc6ae to 8aeebf3 Compare May 5, 2023 17:19
This commit implements a new webhook to validate the creation and update of volumeimportsources and volumeuploadsources.

It also adds proper testing for the new webhook.

Signed-off-by: Alvaro Romero <alromero@redhat.com>
@alromeros
Copy link
Collaborator Author

/retest-required

Copy link
Member

@mhenriks mhenriks left a comment

Choose a reason for hiding this comment

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

Looks great just missing a functional test

return nil, err
}

// Reject spec updates
Copy link
Member

Choose a reason for hiding this comment

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

We may allow this eventually, but this is good for now

Signed-off-by: Alvaro Romero <alromero@redhat.com>
@mhenriks
Copy link
Member

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label May 10, 2023
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mhenriks

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 10, 2023
@kubevirt-bot kubevirt-bot merged commit 07661a0 into kubevirt:main May 10, 2023
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 DCO signed all their commits. 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/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants