...
1# Embedded Pallets
2In order to be able to embed the pallets directory to be used in tests and bootstrapping all bazel rules for pallets need to be defined in the root BUILD.bazel.
3
4gen_crds and gen_rbac for lumper can be used as an example
5```bazel
6gen_rbac(
7 name = "gen_rbac",
8 outpath_relative_to_repo_root = True,
9 pkg = "pkg/f8n/warehouse/k8s/controllers/lumperctl",
10 rbac_out_path = "config/pallets/f8n/warehouse/lumperctl/base/rbac",
11 role_name = "lumperctl",
12)
13
14gen_crds(
15 name = "gen_crds",
16 crd_out_path = "config/pallets/f8n/warehouse/lumperctl/base/crds",
17 outpath_relative_to_repo_root = True,
18 pkg = "pkg/f8n/warehouse/k8s/apis/v1alpha1",
19)
20```
View as plain text