github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/webhook/pkg/injector/BUILD (about)

     1  load("//tools:defs.bzl", "go_library")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "injector",
     7      srcs = [
     8          "certs.go",
     9          "webhook.go",
    10      ],
    11      visibility = ["//:sandbox"],
    12      deps = [
    13          "//pkg/log",
    14          "@com_github_mattbaird_jsonpatch//:go_default_library",
    15          "@io_k8s_api//admission/v1beta1:go_default_library",
    16          "@io_k8s_api//admissionregistration/v1beta1:go_default_library",
    17          "@io_k8s_api//core/v1:go_default_library",
    18          "@io_k8s_apimachinery//pkg/api/errors:go_default_library",
    19          "@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
    20          "@io_k8s_client_go//kubernetes:go_default_library",
    21      ],
    22  )
    23  
    24  genrule(
    25      name = "certs",
    26      srcs = [":gencerts"],
    27      outs = ["certs.go"],
    28      cmd = "$$(cut -d ' ' -f 1 <<< \"$(locations :gencerts)\") $@",
    29  )
    30  
    31  sh_binary(
    32      name = "gencerts",
    33      srcs = ["gencerts.sh"],
    34  )