Skip to content

Is it possible to have specific webhook for each version of the same kind? #3285

Closed Answered by camilamacedo86
mhshams asked this question in Support
Discussion options

You must be logged in to vote

To answer the user's question:

Yes, this is the expected behavior when dealing with conversion in Kubernetes CRDs. Here's why:

Storage Version:

When you said v1 is the storage version, it means that all the objects of Kind Foo, irrespective of their API version, will be stored in etcd in the v1 version. So, whether you submit a v1 or v2 object to the API server, before persisting to etcd, it will be converted to the v1 version.

Conversion Webhooks:

The conversion webhooks are responsible for converting objects between different versions. When an object is submitted to the API server (either for reading or writing), it might need to be converted to a different version. This is where the co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants