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
f4963471
Commit
f4963471
authored
Nov 06, 2017
by
houjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should return when claim.Spec.VolumeName is null
parent
21062657
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
pv_controller_base.go
pkg/controller/volume/persistentvolume/pv_controller_base.go
+6
-2
No files found.
pkg/controller/volume/persistentvolume/pv_controller_base.go
View file @
f4963471
...
@@ -243,11 +243,15 @@ func (ctrl *PersistentVolumeController) deleteClaim(claim *v1.PersistentVolumeCl
...
@@ -243,11 +243,15 @@ func (ctrl *PersistentVolumeController) deleteClaim(claim *v1.PersistentVolumeCl
_
=
ctrl
.
claims
.
Delete
(
claim
)
_
=
ctrl
.
claims
.
Delete
(
claim
)
glog
.
V
(
4
)
.
Infof
(
"claim %q deleted"
,
claimToClaimKey
(
claim
))
glog
.
V
(
4
)
.
Infof
(
"claim %q deleted"
,
claimToClaimKey
(
claim
))
volumeName
:=
claim
.
Spec
.
VolumeName
if
volumeName
==
""
{
glog
.
V
(
5
)
.
Infof
(
"deleteClaim[%q]: volume not bound"
,
claimToClaimKey
(
claim
))
return
}
// sync the volume when its claim is deleted. Explicitly sync'ing the
// sync the volume when its claim is deleted. Explicitly sync'ing the
// volume here in response to claim deletion prevents the volume from
// volume here in response to claim deletion prevents the volume from
// waiting until the next sync period for its Release.
// waiting until the next sync period for its Release.
volumeName
:=
claim
.
Spec
.
VolumeName
glog
.
V
(
5
)
.
Infof
(
"deleteClaim[%q]: scheduling sync of volume %s"
,
claimToClaimKey
(
claim
),
volumeName
)
glog
.
V
(
5
)
.
Infof
(
"deleteClaim[%s]: scheduling sync of volume %q"
,
claimToClaimKey
(
claim
),
volumeName
)
ctrl
.
volumeQueue
.
Add
(
volumeName
)
ctrl
.
volumeQueue
.
Add
(
volumeName
)
}
}
...
...
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