k3s/vendor/k8s.io/kubernetes/pkg/kubelet/stats/BUILD

102 lines
4.2 KiB
Python
Raw Normal View History

2019-01-12 04:58:27 +00:00
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"cadvisor_stats_provider.go",
"cri_stats_provider.go",
2019-04-07 17:07:55 +00:00
"cri_stats_provider_others.go",
"cri_stats_provider_windows.go",
2019-01-12 04:58:27 +00:00
"helper.go",
"log_metrics_provider.go",
"provider.go",
2019-01-12 04:58:27 +00:00
],
importpath = "k8s.io/kubernetes/pkg/kubelet/stats",
visibility = ["//visibility:public"],
deps = [
"//pkg/kubelet/cadvisor:go_default_library",
"//pkg/kubelet/cm:go_default_library",
"//pkg/kubelet/container:go_default_library",
"//pkg/kubelet/kuberuntime:go_default_library",
"//pkg/kubelet/leaky:go_default_library",
"//pkg/kubelet/pod:go_default_library",
"//pkg/kubelet/server/stats:go_default_library",
2019-04-07 17:07:55 +00:00
"//pkg/kubelet/stats/pidlimit:go_default_library",
"//pkg/kubelet/status:go_default_library",
2019-01-12 04:58:27 +00:00
"//pkg/kubelet/types:go_default_library",
"//pkg/volume:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
2019-08-30 18:33:25 +00:00
"//staging/src/k8s.io/cri-api/pkg/apis:go_default_library",
"//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library",
"//staging/src/k8s.io/kubelet/pkg/apis/stats/v1alpha1:go_default_library",
2019-01-12 04:58:27 +00:00
"//vendor/github.com/google/cadvisor/fs:go_default_library",
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
"//vendor/github.com/google/cadvisor/info/v2:go_default_library",
2020-08-10 17:43:49 +00:00
"//vendor/k8s.io/klog/v2:go_default_library",
2019-04-07 17:07:55 +00:00
] + select({
"@io_bazel_rules_go//go/platform:windows": [
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
"//vendor/github.com/Microsoft/hcsshim:go_default_library",
],
"//conditions:default": [],
}),
2019-01-12 04:58:27 +00:00
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
2019-04-07 17:07:55 +00:00
srcs = [
":package-srcs",
"//pkg/kubelet/stats/pidlimit:all-srcs",
],
2019-01-12 04:58:27 +00:00
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = [
"cadvisor_stats_provider_test.go",
"cri_stats_provider_test.go",
"helper_test.go",
"log_metrics_provider_test.go",
"provider_test.go",
2019-01-12 04:58:27 +00:00
],
embed = [":go_default_library"],
deps = [
"//pkg/kubelet/cadvisor/testing:go_default_library",
"//pkg/kubelet/cm:go_default_library",
"//pkg/kubelet/container:go_default_library",
"//pkg/kubelet/container/testing:go_default_library",
"//pkg/kubelet/kuberuntime:go_default_library",
"//pkg/kubelet/leaky:go_default_library",
"//pkg/kubelet/pod/testing:go_default_library",
"//pkg/kubelet/server/stats:go_default_library",
2019-04-07 17:07:55 +00:00
"//pkg/kubelet/status/testing:go_default_library",
2019-01-12 04:58:27 +00:00
"//pkg/kubelet/types:go_default_library",
"//pkg/volume:go_default_library",
2019-04-07 17:07:55 +00:00
"//staging/src/k8s.io/api/core/v1:go_default_library",
2019-01-12 04:58:27 +00:00
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
2019-06-12 21:00:25 +00:00
"//staging/src/k8s.io/apimachinery/pkg/util/uuid:go_default_library",
2019-08-30 18:33:25 +00:00
"//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library",
"//staging/src/k8s.io/cri-api/pkg/apis/testing:go_default_library",
"//staging/src/k8s.io/kubelet/pkg/apis/stats/v1alpha1:go_default_library",
2019-04-07 17:07:55 +00:00
"//vendor/github.com/golang/mock/gomock:go_default_library",
2019-01-12 04:58:27 +00:00
"//vendor/github.com/google/cadvisor/fs:go_default_library",
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
"//vendor/github.com/google/cadvisor/info/v2:go_default_library",
"//vendor/github.com/google/gofuzz:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
"//vendor/github.com/stretchr/testify/require:go_default_library",
],
)