8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
71 lines
2 KiB
Text
71 lines
2 KiB
Text
package(default_visibility = ["//visibility:public"])
|
|
|
|
licenses(["notice"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_library",
|
|
"go_test",
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"doc.go",
|
|
"helpers.go",
|
|
"image_gc_manager.go",
|
|
"image_manager.go",
|
|
"puller.go",
|
|
"types.go",
|
|
],
|
|
tags = ["automanaged"],
|
|
deps = [
|
|
"//pkg/api/v1:go_default_library",
|
|
"//pkg/client/record:go_default_library",
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
"//pkg/kubelet/container:go_default_library",
|
|
"//pkg/kubelet/events:go_default_library",
|
|
"//pkg/util/flowcontrol:go_default_library",
|
|
"//pkg/util/parsers:go_default_library",
|
|
"//vendor:github.com/docker/distribution/reference",
|
|
"//vendor:github.com/golang/glog",
|
|
"//vendor:k8s.io/apimachinery/pkg/util/errors",
|
|
"//vendor:k8s.io/apimachinery/pkg/util/sets",
|
|
"//vendor:k8s.io/apimachinery/pkg/util/wait",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"image_gc_manager_test.go",
|
|
"image_manager_test.go",
|
|
],
|
|
library = ":go_default_library",
|
|
tags = ["automanaged"],
|
|
deps = [
|
|
"//pkg/api/v1:go_default_library",
|
|
"//pkg/client/record:go_default_library",
|
|
"//pkg/kubelet/cadvisor/testing:go_default_library",
|
|
"//pkg/kubelet/container:go_default_library",
|
|
"//pkg/kubelet/container/testing:go_default_library",
|
|
"//pkg/util/clock:go_default_library",
|
|
"//pkg/util/flowcontrol:go_default_library",
|
|
"//vendor:github.com/google/cadvisor/info/v2",
|
|
"//vendor:github.com/stretchr/testify/assert",
|
|
"//vendor:github.com/stretchr/testify/require",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
)
|