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

✨ webhooks: defaulting and validation for ExtensionConfig #6475

Conversation

chrischdi
Copy link
Member

@chrischdi chrischdi commented May 3, 2022

Co-authored-by: Yuvaraj Kakaraparthi [email protected]
Co-authored-by: Christian Schlotter [email protected]

What this PR does / why we need it:

Adds defaulting and advanced validation for Runtime SDK's ExtensionConfig.

Credits to Yuvaraj who did the implementation.

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

  • Requires squash

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 3, 2022
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 3, 2022
@chrischdi chrischdi force-pushed the pr-runtime-sdk-webhooks-extensionconfig branch from f5481c5 to 224aef1 Compare May 3, 2022 13:22
Copy link
Contributor

@ykakarap ykakarap left a comment

Choose a reason for hiding this comment

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

This looks great! Thank you @chrischdi !!

Mostly just nits.

internal/webhooks/runtime/extensionconfig_webhook_test.go Outdated Show resolved Hide resolved
internal/webhooks/runtime/extensionconfig_webhook_test.go Outdated Show resolved Hide resolved
internal/webhooks/runtime/extensionconfig_webhook_test.go Outdated Show resolved Hide resolved
internal/webhooks/runtime/extensionconfig_webhook_test.go Outdated Show resolved Hide resolved
internal/webhooks/util/util.go Outdated Show resolved Hide resolved
@chrischdi chrischdi force-pushed the pr-runtime-sdk-webhooks-extensionconfig branch from 6175068 to 3a65c56 Compare May 4, 2022 06:50
@chrischdi
Copy link
Member Author

I will squash later on after further review.

@killianmuldoon
Copy link
Contributor

/area runtime-sdk

@k8s-ci-robot k8s-ci-robot added the area/runtime-sdk Issues or PRs related to Runtime SDK label May 9, 2022
@sbueringer sbueringer mentioned this pull request May 11, 2022
30 tasks
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.

Thx, a few nits otherwise lgtm from my side

internal/webhooks/runtime/extensionconfig_webhook.go Outdated Show resolved Hide resolved
internal/webhooks/runtime/extensionconfig_webhook.go Outdated Show resolved Hide resolved
internal/webhooks/runtime/extensionconfig_webhook.go Outdated Show resolved Hide resolved
internal/webhooks/runtime/extensionconfig_webhook_test.go Outdated Show resolved Hide resolved
@chrischdi chrischdi force-pushed the pr-runtime-sdk-webhooks-extensionconfig branch 2 times, most recently from f1813e4 to 2dbe5e5 Compare May 12, 2022 07:40
@sbueringer
Copy link
Member

Thx!

lgtm pending squash from my side

Co-authored-by: Yuvaraj Kakaraparthi <[email protected]>
Co-authored-by: Christian Schlotter <[email protected]>
@chrischdi chrischdi force-pushed the pr-runtime-sdk-webhooks-extensionconfig branch from 2dbe5e5 to ce89e60 Compare May 13, 2022 07:22
@chrischdi
Copy link
Member Author

Squashed the commits :-)

@sbueringer
Copy link
Member

/lgtm

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

@fabriziopandini fabriziopandini 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
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

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 13, 2022
@k8s-ci-robot k8s-ci-robot merged commit a6edb8e into kubernetes-sigs:main May 13, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.2 milestone May 13, 2022
@chrischdi chrischdi deleted the pr-runtime-sdk-webhooks-extensionconfig branch June 30, 2022 06:44
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. area/runtime-sdk Issues or PRs related to Runtime SDK 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