...

Text file src/edge-infra.dev/cmd/sds/nodeagent/BUILD.bazel

Documentation: edge-infra.dev/cmd/sds/nodeagent

     1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
     2load("//hack/build/rules/container:index.bzl", "container_push", "go_oci_image")
     3
     4go_library(
     5    name = "nodeagent_lib",
     6    srcs = ["main.go"],
     7    importpath = "edge-infra.dev/cmd/sds/nodeagent",
     8    visibility = ["//visibility:private"],
     9    deps = [
    10        "//pkg/lib/fog",
    11        "//pkg/sds/ien/k8s/controllers/nodeagent",
    12        "//pkg/sds/ien/k8s/controllers/nodeagent/config",
    13        "@com_github_peterbourgon_ff_v3//:ff",
    14        "@io_k8s_sigs_controller_runtime//:controller-runtime",
    15    ],
    16)
    17
    18go_binary(
    19    name = "nodeagent",
    20    embed = [":nodeagent_lib"],
    21    visibility = ["//visibility:public"],
    22)
    23
    24go_oci_image(
    25    name = "nodeagent_container",
    26    embed = [":nodeagent_lib"],
    27    tags = ["manual"],
    28)
    29
    30container_push(
    31    name = "container_push",
    32    image = ":nodeagent_container",
    33    image_name = "nodeagent",
    34    repository_file = "//hack/build/rules/container:workloads-repo",
    35)

View as plain text