mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
remove dependency on implementation from policy preferred and strict
update build
This commit is contained in:
parent
ef9baf313d
commit
0244c0e658
@ -1,9 +1,11 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = [
|
||||
"policy.go",
|
||||
"policy_preferred.go",
|
||||
"policy_strict.go",
|
||||
"topology_manager.go",
|
||||
],
|
||||
importpath = "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager",
|
||||
@ -31,3 +33,12 @@ filegroup(
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = [
|
||||
"policy_preferred_test.go",
|
||||
"policy_strict_test.go",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
)
|
||||
|
@ -25,7 +25,7 @@ type preferredPolicy struct{}
|
||||
var _ Policy = &preferredPolicy{}
|
||||
|
||||
// PolicyPreferred policy name.
|
||||
const PolicyPreferred policyName = "preferred"
|
||||
const PolicyPreferred string = "preferred"
|
||||
|
||||
// NewPreferredPolicy returns preferred policy.
|
||||
func NewPreferredPolicy() Policy {
|
||||
|
@ -25,7 +25,7 @@ type strictPolicy struct{}
|
||||
var _ Policy = &strictPolicy{}
|
||||
|
||||
// PolicyStrict policy name.
|
||||
const PolicyStrict policyName = "strict"
|
||||
const PolicyStrict string = "strict"
|
||||
|
||||
// NewStrictPolicy returns strict policy.
|
||||
func NewStrictPolicy() Policy {
|
||||
|
Loading…
Reference in New Issue
Block a user