Skip to content

CRD Multiversion (Conversion webhook) #2533

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

You must be logged in to vote

Hello,

By using webhooks for CRD conversion or validation, the webhooks are typically cluster-scoped because CRDs themselves can be cluster-scoped. This means the webhook needs to be accessible from all namespaces for any instance of the CRD, which is why when you specify the webhook in the CRD definition, it makes the operator essentially cluster-scoped.

However, note that even if you have a cluster-wide webhook, you can still use RBAC to limit the permissions of the operator itself. Make sure the ClusterRole/Role and ClusterRoleBinding/RoleBinding for the operator only give it permissions to the namespace(s) where you want it to operate.

You might also can deploy the webhook server sepa…

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