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

feat(web-operator): add conversion webhooks #639

Merged
merged 14 commits into from
Dec 6, 2023
Merged

Conversation

buehler
Copy link
Owner

@buehler buehler commented Oct 17, 2023

This closes #137

@buehler buehler marked this pull request as draft October 17, 2023 15:16
@buehler
Copy link
Owner Author

buehler commented Oct 18, 2023

possible idea: use this version of conversion webhooks and hide them behind https://learn.microsoft.com/en-us/dotnet/api/system.runtime.versioning.requirespreviewfeaturesattribute?view=net-7.0 preview feature attribute.

with that, we can let people test the feature and make some breaking changes inside normal versioning.

@buehler buehler force-pushed the feat/conversion-webhooks branch from 4da222e to f968e0f Compare October 18, 2023 13:10
@buehler
Copy link
Owner Author

buehler commented Oct 18, 2023

todo: generate CRD webhook info in CLI

@buehler
Copy link
Owner Author

buehler commented Nov 24, 2023

generating the resources is not really useful now. to attach conversion webhooks to CRDs, I need to generate all resources on the same level or as children.

@buehler buehler force-pushed the feat/conversion-webhooks branch from e869647 to cedd6fc Compare December 5, 2023 14:52
@buehler buehler marked this pull request as ready for review December 6, 2023 08:07
@buehler buehler merged commit a25a634 into main Dec 6, 2023
3 checks passed
@buehler buehler deleted the feat/conversion-webhooks branch December 6, 2023 08:10
buehler added a commit that referenced this pull request Jan 17, 2024
This closes #137. This adds the preview version of conversion webhooks.
The API is not stable yet and changes may happen in the future. They
require the preview features flag to be set.

BREAKING CHANGE: The CLI (which broke anyway...) does now
generate everyting together and determines based on the
project if there are webhooks or not. This results in one
config folder instead of separate folders for CRD, RBAC, etc.
With this, conversion webhooks can inject their configuration
into the CRDs. Otherwise, this would be a cumbersome process.
If the need for single topic generation arises again (for example only CRDs),
then these generators can be added again.
buehler added a commit that referenced this pull request Jan 17, 2024
This closes #137. This adds the preview version of conversion webhooks.
The API is not stable yet and changes may happen in the future. They
require the preview features flag to be set.

BREAKING CHANGE: The CLI (which broke anyway...) does now
generate everyting together and determines based on the
project if there are webhooks or not. This results in one
config folder instead of separate folders for CRD, RBAC, etc.
With this, conversion webhooks can inject their configuration
into the CRDs. Otherwise, this would be a cumbersome process.
If the need for single topic generation arises again (for example only CRDs),
then these generators can be added again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add migration webhooks
1 participant