blob: 50f89d8a0cd0700023d71c37a4eb3f6ec4b3b353 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "k8s-checker_lib",
srcs = ["main.go"],
importpath = "go.skia.org/infra/k8s-checker/go/k8s-checker",
visibility = ["//visibility:private"],
deps = [
"//go/auth",
"//go/common",
"//go/git",
"//go/gitiles",
"//go/httputils",
"//go/kube/clusterconfig",
"//go/metrics2",
"//go/skerr",
"//go/sklog",
"//go/util",
"//k8s-checker/go/k8s_config",
"@io_k8s_api//core/v1:core",
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
"@io_k8s_client_go//kubernetes",
"@io_k8s_client_go//rest",
"@org_golang_x_oauth2//google",
],
)
go_binary(
name = "k8s-checker",
embed = [":k8s-checker_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "k8s-checker_test",
srcs = ["main_test.go"],
embed = [":k8s-checker_lib"],
deps = [
"//go/testutils/unittest",
"@com_github_stretchr_testify//require",
],
)