Skip to content

Commit 3dc98da

Browse files
committed
UPSTREAM: <carry>: allow PV controller recycler template override
:000000 100644 0000000000... b9fffad... A pkg/volume/patch.go :100644 100644 41721d1... 4d13a74... M pkg/volume/plugins.go
1 parent 878fec3 commit 3dc98da

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pkg/volume/patch.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package volume
2+
3+
import "k8s.io/kubernetes/pkg/api/v1"
4+
5+
// we carry a patch which allows us to reset this function selectively when we run openshift start, but *not*
6+
// when we run `kube-controller-manager`. We have it in this separate file to avoid conflicts during a rebase
7+
var NewPersistentVolumeRecyclerPodTemplate func() *v1.Pod = newPersistentVolumeRecyclerPodTemplate

pkg/volume/plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func (pm *VolumePluginMgr) FindAttachablePluginByName(name string) (AttachableVo
552552
// before failing. Recommended. Default is 60 seconds.
553553
//
554554
// See HostPath and NFS for working recycler examples
555-
func NewPersistentVolumeRecyclerPodTemplate() *v1.Pod {
555+
func newPersistentVolumeRecyclerPodTemplate() *v1.Pod {
556556
timeout := int64(60)
557557
pod := &v1.Pod{
558558
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)