Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0244c0e6
Commit
0244c0e6
authored
May 30, 2019
by
nolancon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dependency on implementation from policy preferred and strict
update build
parent
ef9baf31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
BUILD
pkg/kubelet/cm/topologymanager/BUILD
+12
-1
policy_preferred.go
pkg/kubelet/cm/topologymanager/policy_preferred.go
+1
-1
policy_strict.go
pkg/kubelet/cm/topologymanager/policy_strict.go
+1
-1
No files found.
pkg/kubelet/cm/topologymanager/BUILD
View file @
0244c0e6
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"],
)
pkg/kubelet/cm/topologymanager/policy_preferred.go
View file @
0244c0e6
...
...
@@ -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
{
...
...
pkg/kubelet/cm/topologymanager/policy_strict.go
View file @
0244c0e6
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment