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
a405df43
Commit
a405df43
authored
Jun 24, 2016
by
k8s-merge-robot
Committed by
GitHub
Jun 24, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25710 from xiangpengzhao/fix_predicate
Automatic merge from submit-queue No need to log empty string in predicates.go If `pvcName` is empty, we don't need to log it.
parents
c4aa7ee0
74901ae1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
predicates.go
plugin/pkg/scheduler/algorithm/predicates/predicates.go
+2
-2
No files found.
plugin/pkg/scheduler/algorithm/predicates/predicates.go
View file @
a405df43
...
@@ -156,7 +156,7 @@ func (c *MaxPDVolumeCountChecker) filterVolumes(volumes []api.Volume, namespace
...
@@ -156,7 +156,7 @@ func (c *MaxPDVolumeCountChecker) filterVolumes(volumes []api.Volume, namespace
}
else
if
vol
.
PersistentVolumeClaim
!=
nil
{
}
else
if
vol
.
PersistentVolumeClaim
!=
nil
{
pvcName
:=
vol
.
PersistentVolumeClaim
.
ClaimName
pvcName
:=
vol
.
PersistentVolumeClaim
.
ClaimName
if
pvcName
==
""
{
if
pvcName
==
""
{
return
fmt
.
Errorf
(
"PersistentVolumeClaim had no name
: %q"
,
pvcName
)
return
fmt
.
Errorf
(
"PersistentVolumeClaim had no name
"
)
}
}
pvc
,
err
:=
c
.
pvcInfo
.
GetPersistentVolumeClaimInfo
(
namespace
,
pvcName
)
pvc
,
err
:=
c
.
pvcInfo
.
GetPersistentVolumeClaimInfo
(
namespace
,
pvcName
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -322,7 +322,7 @@ func (c *VolumeZoneChecker) predicate(pod *api.Pod, nodeInfo *schedulercache.Nod
...
@@ -322,7 +322,7 @@ func (c *VolumeZoneChecker) predicate(pod *api.Pod, nodeInfo *schedulercache.Nod
if
volume
.
PersistentVolumeClaim
!=
nil
{
if
volume
.
PersistentVolumeClaim
!=
nil
{
pvcName
:=
volume
.
PersistentVolumeClaim
.
ClaimName
pvcName
:=
volume
.
PersistentVolumeClaim
.
ClaimName
if
pvcName
==
""
{
if
pvcName
==
""
{
return
false
,
fmt
.
Errorf
(
"PersistentVolumeClaim had no name
: %q"
,
pvcName
)
return
false
,
fmt
.
Errorf
(
"PersistentVolumeClaim had no name
"
)
}
}
pvc
,
err
:=
c
.
pvcInfo
.
GetPersistentVolumeClaimInfo
(
namespace
,
pvcName
)
pvc
,
err
:=
c
.
pvcInfo
.
GetPersistentVolumeClaimInfo
(
namespace
,
pvcName
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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