Skip to content

Commit 468264a

Browse files
committed
Webhook Generation
This adds WebhookConfig generation (as per our existing webhook markers, with slight modifications) on top of the new generator framework.
1 parent 80c3f33 commit 468264a

File tree

12 files changed

+125
-1392
lines changed

12 files changed

+125
-1392
lines changed

cmd/controller-gen/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"sigs.k8s.io/controller-tools/pkg/genall"
2828
"sigs.k8s.io/controller-tools/pkg/markers"
2929
"sigs.k8s.io/controller-tools/pkg/rbac"
30+
"sigs.k8s.io/controller-tools/pkg/webhook"
3031
)
3132

3233
// Options are specified to controller-gen by turning generators and output rules into
@@ -42,6 +43,7 @@ var (
4243
"crd": crd.Generator{},
4344
"rbac": rbac.Generator{},
4445
"object": deepcopy.Generator{},
46+
"webhook": webhook.Generator{},
4547
}
4648

4749
// allOutputRules defines the list of all known output rules, giving

pkg/webhook/admission.go

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)