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
6a5ea5ec
Commit
6a5ea5ec
authored
Jan 13, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19239 from markturansky/fixup_pv_controllers
Auto commit by PR queue bot
parents
dc36f3a7
50d83f38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
persistentvolume_claim_binder_controller.go
...sistentvolume/persistentvolume_claim_binder_controller.go
+1
-0
persistentvolume_recycler_controller.go
.../persistentvolume/persistentvolume_recycler_controller.go
+2
-0
No files found.
pkg/controller/persistentvolume/persistentvolume_claim_binder_controller.go
View file @
6a5ea5ec
...
@@ -156,6 +156,7 @@ func (binder *PersistentVolumeClaimBinder) updateClaim(oldObj, newObj interface{
...
@@ -156,6 +156,7 @@ func (binder *PersistentVolumeClaimBinder) updateClaim(oldObj, newObj interface{
newClaim
,
ok
:=
newObj
.
(
*
api
.
PersistentVolumeClaim
)
newClaim
,
ok
:=
newObj
.
(
*
api
.
PersistentVolumeClaim
)
if
!
ok
{
if
!
ok
{
glog
.
Errorf
(
"Expected PersistentVolumeClaim but handler received %+v"
,
newObj
)
glog
.
Errorf
(
"Expected PersistentVolumeClaim but handler received %+v"
,
newObj
)
return
}
}
if
err
:=
syncClaim
(
binder
.
volumeIndex
,
binder
.
client
,
newClaim
);
err
!=
nil
{
if
err
:=
syncClaim
(
binder
.
volumeIndex
,
binder
.
client
,
newClaim
);
err
!=
nil
{
glog
.
Errorf
(
"PVClaimBinder could not update claim %s: %+v"
,
newClaim
.
Name
,
err
)
glog
.
Errorf
(
"PVClaimBinder could not update claim %s: %+v"
,
newClaim
.
Name
,
err
)
...
...
pkg/controller/persistentvolume/persistentvolume_recycler_controller.go
View file @
6a5ea5ec
...
@@ -77,6 +77,7 @@ func NewPersistentVolumeRecycler(kubeClient client.Interface, syncPeriod time.Du
...
@@ -77,6 +77,7 @@ func NewPersistentVolumeRecycler(kubeClient client.Interface, syncPeriod time.Du
pv
,
ok
:=
obj
.
(
*
api
.
PersistentVolume
)
pv
,
ok
:=
obj
.
(
*
api
.
PersistentVolume
)
if
!
ok
{
if
!
ok
{
glog
.
Errorf
(
"Error casting object to PersistentVolume: %v"
,
obj
)
glog
.
Errorf
(
"Error casting object to PersistentVolume: %v"
,
obj
)
return
}
}
recycler
.
reclaimVolume
(
pv
)
recycler
.
reclaimVolume
(
pv
)
},
},
...
@@ -84,6 +85,7 @@ func NewPersistentVolumeRecycler(kubeClient client.Interface, syncPeriod time.Du
...
@@ -84,6 +85,7 @@ func NewPersistentVolumeRecycler(kubeClient client.Interface, syncPeriod time.Du
pv
,
ok
:=
newObj
.
(
*
api
.
PersistentVolume
)
pv
,
ok
:=
newObj
.
(
*
api
.
PersistentVolume
)
if
!
ok
{
if
!
ok
{
glog
.
Errorf
(
"Error casting object to PersistentVolume: %v"
,
newObj
)
glog
.
Errorf
(
"Error casting object to PersistentVolume: %v"
,
newObj
)
return
}
}
recycler
.
reclaimVolume
(
pv
)
recycler
.
reclaimVolume
(
pv
)
},
},
...
...
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