Adopt custom defaulter and validator interface for webhooks intead of deprecated default (#3152)

* Move webhooks to webhooks package

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

* change interface

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

* Change interface methods

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

* comment debug logs for now

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

* rename files

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

* Fix webhook warnings

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

* Update makefile

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

* lint fixes

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>

---------

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2025-01-23 15:36:07 +05:30
committed by GitHub
parent 38ec6528e3
commit fb60a14ecc
16 changed files with 658 additions and 587 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ generate-crds:
### Webhook generation: it generates webhook configs with help of kubebuilder:webhook tag
generate-webhooks:
go run sigs.k8s.io/controller-tools/cmd/controller-gen webhook \
paths=./pkg/apis/core/v1 \
paths=./pkg/webhook \
output:dir=charts/fission-all/templates/webhook-server