...
1load("//hack/tools/controller-gen:controller-gen.bzl", "gen_crds", "gen_rbac")
2
3gen_crds(
4 name = "gen_display_crds",
5 crd_out_path = "config/pallets/sds/display/base/crds",
6 gen_webhooks = True,
7 outpath_relative_to_repo_root = True,
8 paths = "./...",
9 pkg = "pkg/sds/display/k8s/apis",
10)
11
12gen_rbac(
13 name = "gen_displayctl_rbac",
14 outpath_relative_to_repo_root = True,
15 pkg = "pkg/sds/display/k8s/controllers/displayctl",
16 rbac_out_path = "config/pallets/sds/display/base/displayctl",
17 role_name = "displayctl",
18)
19
20gen_rbac(
21 name = "gen_xserver_rbac",
22 outpath_relative_to_repo_root = True,
23 pkg = "pkg/sds/display/k8s/controllers/xserver",
24 rbac_out_path = "config/pallets/sds/display/base/xserver",
25 role_name = "xserver",
26)
27
28gen_rbac(
29 name = "gen_webhook_rbac",
30 outpath_relative_to_repo_root = True,
31 pkg = "pkg/sds/display/k8s/webhooks/display",
32 rbac_out_path = "config/pallets/sds/display/base/webhook",
33 role_name = "display-webhook",
34)
View as plain text