load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") load("//hack/build/rules/container:index.bzl", "container_push", "go_oci_image") go_library( name = "tolerator_lib", srcs = ["main.go"], importpath = "edge-infra.dev/cmd/sds/tolerator", visibility = ["//visibility:private"], deps = [ "//pkg/k8s/runtime/controller", "//pkg/lib/logging", "//pkg/sds/k8s/tolerator", "@io_k8s_api//core/v1:core", "@io_k8s_apimachinery//pkg/runtime", "@io_k8s_apimachinery//pkg/util/runtime", "@io_k8s_client_go//kubernetes/scheme", "@io_k8s_sigs_controller_runtime//:controller-runtime", "@io_k8s_sigs_controller_runtime//pkg/webhook", "@io_k8s_sigs_controller_runtime//pkg/webhook/admission", ], ) go_binary( name = "tolerator", embed = [":tolerator_lib"], visibility = ["//visibility:public"], ) go_oci_image( name = "tolerator_container", embed = [":tolerator_lib"], tags = [ "manual", "no-remote-cache", ], ) container_push( name = "container_push", image = ":tolerator_container", image_name = "tolerator", repository_file = "//hack/build/rules/container:workloads-repo", )