Merge pull request #102229 from sanposhiho/fix/nil-pointer-on-nodevolumelimits

Fix: Logging causes nil-pointer
This commit is contained in:
Kubernetes Prow Robot 2021-05-24 07:17:38 -07:00 committed by GitHub
commit 3464112cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ func (pl *CSILimits) Filter(ctx context.Context, _ *framework.CycleState, pod *v
node := nodeInfo.Node()
if node == nil {
return framework.NewStatus(framework.Error, fmt.Sprintf("node not found: %s", node.Name))
return framework.NewStatus(framework.Error, "node not found")
}
// If CSINode doesn't exist, the predicate may read the limits from Node object

View File

@ -215,7 +215,7 @@ func (pl *nonCSILimits) Filter(ctx context.Context, _ *framework.CycleState, pod
node := nodeInfo.Node()
if node == nil {
return framework.NewStatus(framework.Error, fmt.Sprintf("node not found: %s", node.Name))
return framework.NewStatus(framework.Error, "node not found")
}
var csiNode *storage.CSINode