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
46c74629
Unverified
Commit
46c74629
authored
Jun 01, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jun 01, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #78516 from klueska/upstream-topology-manager-interface-updates
Update the TopologyManager interfaces
parents
21c9c7a6
617a1fa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
topology_manager.go
pkg/kubelet/cm/topologymanager/topology_manager.go
+5
-2
No files found.
pkg/kubelet/cm/topologymanager/topology_manager.go
View file @
46c74629
...
@@ -39,7 +39,7 @@ type Manager interface {
...
@@ -39,7 +39,7 @@ type Manager interface {
//HintProvider interface is to be implemented by Hint Providers
//HintProvider interface is to be implemented by Hint Providers
type
HintProvider
interface
{
type
HintProvider
interface
{
GetTopologyHints
(
pod
v1
.
Pod
,
container
v1
.
Container
)
([]
TopologyHint
,
bool
)
GetTopologyHints
(
pod
v1
.
Pod
,
container
v1
.
Container
)
[]
TopologyHint
}
}
//Store interface is to allow Hint Providers to retrieve pod affinity
//Store interface is to allow Hint Providers to retrieve pod affinity
...
@@ -47,7 +47,10 @@ type Store interface {
...
@@ -47,7 +47,10 @@ type Store interface {
GetAffinity
(
podUID
string
,
containerName
string
)
TopologyHint
GetAffinity
(
podUID
string
,
containerName
string
)
TopologyHint
}
}
//
TopologyHint is a struct containing Socket Mask for a Pod
//
TopologyHint is a struct containing a SocketMask for a Container
type
TopologyHint
struct
{
type
TopologyHint
struct
{
SocketAffinity
socketmask
.
SocketMask
SocketAffinity
socketmask
.
SocketMask
// Preferred is set to true when the SocketMask encodes a preferred
// allocation for the Container. It is set to false otherwise.
Preferred
bool
}
}
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