summaryrefslogtreecommitdiffhomepage
path: root/webhook/pkg/injector/BUILD
blob: d296981be833f82d716101b4048863fa5507f703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
load("//tools:defs.bzl", "go_library")

package(licenses = ["notice"])

go_library(
    name = "injector",
    srcs = [
        "certs.go",
        "webhook.go",
    ],
    visibility = ["//:sandbox"],
    deps = [
        "//pkg/log",
        "@com_github_mattbaird_jsonpatch//:go_default_library",
        "@io_k8s_api//admission/v1beta1:go_default_library",
        "@io_k8s_api//admissionregistration/v1beta1:go_default_library",
        "@io_k8s_api//core/v1:go_default_library",
        "@io_k8s_apimachinery//pkg/api/errors:go_default_library",
        "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
        "@io_k8s_client_go//kubernetes:go_default_library",
    ],
)

genrule(
    name = "certs",
    srcs = [":gencerts"],
    outs = ["certs.go"],
    cmd = "$$(cut -d ' ' -f 1 <<< \"$(locations :gencerts)\") $@",
)

sh_binary(
    name = "gencerts",
    srcs = ["gencerts.sh"],
)