mirror of https://github.com/k3s-io/k3s
115 lines
4.3 KiB
Python
115 lines
4.3 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"doc.go",
|
|
"fs_resource_analyzer.go",
|
|
"handler.go",
|
|
"resource_analyzer.go",
|
|
"summary.go",
|
|
"summary_sys_containers.go",
|
|
"summary_sys_containers_windows.go",
|
|
"volume_stat_calculator.go",
|
|
],
|
|
importpath = "k8s.io/kubernetes/pkg/kubelet/server/stats",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//pkg/kubelet/container:go_default_library",
|
|
"//pkg/kubelet/util:go_default_library",
|
|
"//pkg/kubelet/util/format:go_default_library",
|
|
"//pkg/volume:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1: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",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
"//vendor/github.com/emicklei/go-restful:go_default_library",
|
|
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
|
|
"//vendor/k8s.io/klog:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"summary_test.go",
|
|
"summary_windows_test.go",
|
|
"volume_stat_calculator_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
|
|
"//pkg/kubelet/server/stats/testing:go_default_library",
|
|
"//pkg/volume:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//pkg/kubelet/server/stats/testing:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|