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
e82fa41f
Commit
e82fa41f
authored
May 08, 2019
by
nolancon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More Intuitive TopologyHints - topology manager policies
parent
4e503597
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
policy_preferred.go
pkg/kubelet/cm/topologymanager/policy_preferred.go
+1
-1
policy_strict.go
pkg/kubelet/cm/topologymanager/policy_strict.go
+2
-3
No files found.
pkg/kubelet/cm/topologymanager/policy_preferred.go
View file @
e82fa41f
...
@@ -36,7 +36,7 @@ func (p *preferredPolicy) Name() string {
...
@@ -36,7 +36,7 @@ func (p *preferredPolicy) Name() string {
return
string
(
PolicyPreferred
)
return
string
(
PolicyPreferred
)
}
}
func
(
p
*
preferredPolicy
)
CanAdmitPodResult
(
result
TopologyHints
)
lifecycle
.
PodAdmitResult
{
func
(
p
*
preferredPolicy
)
CanAdmitPodResult
(
admit
bool
)
lifecycle
.
PodAdmitResult
{
return
lifecycle
.
PodAdmitResult
{
return
lifecycle
.
PodAdmitResult
{
Admit
:
true
,
Admit
:
true
,
}
}
...
...
pkg/kubelet/cm/topologymanager/policy_strict.go
View file @
e82fa41f
...
@@ -36,9 +36,8 @@ func (p *strictPolicy) Name() string {
...
@@ -36,9 +36,8 @@ func (p *strictPolicy) Name() string {
return
string
(
PolicyStrict
)
return
string
(
PolicyStrict
)
}
}
func
(
p
*
strictPolicy
)
CanAdmitPodResult
(
result
TopologyHints
)
lifecycle
.
PodAdmitResult
{
func
(
p
*
strictPolicy
)
CanAdmitPodResult
(
admit
bool
)
lifecycle
.
PodAdmitResult
{
affinity
:=
result
.
Affinity
if
!
admit
{
if
!
affinity
{
return
lifecycle
.
PodAdmitResult
{
return
lifecycle
.
PodAdmitResult
{
Admit
:
false
,
Admit
:
false
,
Reason
:
"Topology Affinity Error"
,
Reason
:
"Topology Affinity Error"
,
...
...
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