Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for recycler (0.2 sec)

  1. cmd/kube-controller-manager/app/options/persistentvolumebindercontroller.go

    	fs.Int32Var(&o.VolumeConfiguration.PersistentVolumeRecyclerConfiguration.IncrementTimeoutHostPath, "pv-recycler-timeout-increment-hostpath", o.VolumeConfiguration.P...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/config/types.go

    type PersistentVolumeRecyclerConfiguration struct {
    	// maximumRetry is number of retries the PV recycler will execute on failure to recycle
    	// PV.
    	MaximumRetry int32
    	// minimumTimeoutNFS is the minimum ActiveDeadlineSeconds to use for an NFS Recycler
    	// pod.
    	MinimumTimeoutNFS int32
    	// podTemplateFilePathNFS is the file path to a pod definition used as a template for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. cmd/kube-controller-manager/app/plugins.go

    	if err != nil {
    		return allPlugins, err
    	}
    
    	return allPlugins, nil
    }
    
    // AttemptToLoadRecycler tries decoding a pod from a filepath for use as a recycler for a volume.
    // If successful, this method will set the recycler on the config.
    // If unsuccessful, an error is returned. Function is exported for reuse downstream.
    func AttemptToLoadRecycler(path string, config *volume.VolumeConfig) error {
    	if path != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. pkg/volume/plugins.go

    //  2. pod.GenerateName helps distinguish recycler pods by name.  Recommended.
    //     Default is "pv-recycler-".
    //  3. pod.Spec.ActiveDeadlineSeconds gives the recycler pod a maximum timeout
    //     before failing.  Recommended.  Default is 60 seconds.
    //
    // See HostPath and NFS for working recycler examples
    func NewPersistentVolumeRecyclerPodTemplate() *v1.Pod {
    	timeout := int64(60)
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. pkg/volume/nfs/nfs.go

    		plugin:          plugin,
    		MetricsProvider: volume.NewMetricsStatFS(getPath(podUID, volName, plugin.host)),
    	}}, nil
    }
    
    // Recycle recycles/scrubs clean an NFS volume.
    // Recycle blocks until the pod has completed or any error occurs.
    func (plugin *nfsPlugin) Recycle(pvName string, spec *volume.Spec, eventRecorder recyclerclient.RecycleEventRecorder) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. pkg/volume/plugins_test.go

    	}
    
    	// Check that the default recycle pod template is valid
    	pod = NewPersistentVolumeRecyclerPodTemplate()
    	want = nil
    	if got := ValidateRecyclerPodTemplate(pod); got != want {
    		t.Errorf("isPodTemplateValid(%v) returned (%v), want (%v)", pod.String(), got.Error(), want)
    	}
    
    	pod = &v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Name: "pv-recycler",
    				},
    			},
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. internal/grid/types.go

    	"sort"
    	"strings"
    	"sync"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    // Recycler will override the internal reuse in typed handlers.
    // When this is supported, the handler will not do internal pooling of objects,
    // call Recycle() when the object is no longer needed.
    // The recycler should handle nil pointers.
    type Recycler interface {
    	Recycle()
    }
    
    // MSS is a map[string]string that can be serialized.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 01 23:42:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. internal/grid/handlers.go

    	newReq  func() Req
    	newResp func() Resp
    
    	recycleReq  func(Req)
    	recycleResp func(Resp)
    }
    
    func recycleFunc[RT RoundTripper](newRT func() RT) (newFn func() RT, recycle func(r RT)) {
    	rAny := any(newRT())
    	var rZero RT
    	if _, ok := rAny.(Recycler); ok {
    		return newRT, func(r RT) {
    			if r != rZero {
    				if rc, ok := any(r).(Recycler); ok {
    					rc.Recycle()
    				}
    			}
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. cmd/kube-controller-manager/app/options/options_test.go

    	"--node-monitor-grace-period=30s",
    	"--node-monitor-period=10s",
    	"--node-startup-grace-period=30s",
    	"--profiling=false",
    	"--pv-recycler-increment-timeout-nfs=45",
    	"--pv-recycler-minimum-timeout-hostpath=45",
    	"--pv-recycler-minimum-timeout-nfs=200",
    	"--pv-recycler-timeout-increment-hostpath=45",
    	"--pvclaimbinder-sync-period=30s",
    	"--resource-quota-sync-period=10m",
    	"--route-reconciliation-period=30s",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  10. pkg/controller/volume/persistentvolume/framework_test.go

    )
    
    // wrapTestWithPluginCalls returns a testCall that:
    //   - configures controller with a volume plugin that implements recycler,
    //     deleter and provisioner. The plugin returns provided errors when a volume
    //     is deleted, recycled or provisioned.
    //   - calls given testCall
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top