Commit 0244c0e6 authored by nolancon's avatar nolancon

remove dependency on implementation from policy preferred and strict

update build
parent ef9baf31
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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment