...
1load("@io_bazel_rules_go//go:def.bzl", "go_library")
2load("//hack/tools/controller-gen:controller-gen.bzl", "gen_code", "gen_crds")
3
4go_library(
5 name = "fobject",
6 srcs = ["fake_object.go"],
7 importpath = "edge-infra.dev/pkg/k8s/object/fobject",
8 visibility = ["//visibility:public"],
9 deps = [
10 "@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
11 "@io_k8s_apimachinery//pkg/runtime",
12 "@io_k8s_apimachinery//pkg/runtime/schema",
13 "@io_k8s_sigs_controller_runtime//pkg/scheme",
14 ],
15)
16
17gen_crds(
18 name = "gen_crds",
19 crd_out_path = "pkg/k8s/object/fobject/crds",
20 outpath_relative_to_repo_root = True,
21 pkg = "pkg/k8s/object/fobject",
22)
23
24gen_code(directory = "pkg/k8s/object/fobject")
View as plain text