Commit e098a42
committed
chore(webhooks): register identity API types in controller-manager Scheme
Add identityv1alpha1 to the controller-manager Scheme to enable UserIdentity
webhook registration. Without this registration, the webhook server fails to
start with 'no kind is registered' error.
Changes:
- Add identityv1alpha1 import to controller-manager
- Register identityv1alpha1.AddToScheme in init()
- Use proper Kubernetes error wrappers (NewForbidden, NewBadRequest, NewInternalError)
- Restrict User email updates to self-service only
This fixes the test failures where webhooks were returning 'connection refused'
because the controller-manager was crashing during webhook setup.1 parent 11292a0 commit e098a42
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
0 commit comments