mirror of https://github.com/k3s-io/k3s
60 lines
1.7 KiB
Python
60 lines
1.7 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"fake_topology_manager.go",
|
|
"policy.go",
|
|
"policy_best_effort.go",
|
|
"policy_none.go",
|
|
"policy_restricted.go",
|
|
"policy_single_numa_node.go",
|
|
"topology_manager.go",
|
|
],
|
|
importpath = "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg/kubelet/cm/cpumanager/topology:go_default_library",
|
|
"//pkg/kubelet/cm/topologymanager/socketmask:go_default_library",
|
|
"//pkg/kubelet/lifecycle:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//vendor/k8s.io/klog:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//pkg/kubelet/cm/topologymanager/socketmask:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"fake_topology_manager_test.go",
|
|
"policy_best_effort_test.go",
|
|
"policy_none_test.go",
|
|
"policy_restricted_test.go",
|
|
"policy_single_numa_node_test.go",
|
|
"topology_manager_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//pkg/kubelet/cm/topologymanager/socketmask:go_default_library",
|
|
"//pkg/kubelet/lifecycle:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
],
|
|
)
|