- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 100 for recycler (0.19 sec)
-
pkg/volume/util/recyclerclient/recycler_client.go
klog.V(2).Infof("deleting recycler pod %s/%s", pod.Namespace, pod.Name) deleteErr := recyclerClient.DeletePod(pod.Name, pod.Namespace) if deleteErr != nil { klog.Errorf("failed to delete recycler pod %s/%s: %v", pod.Namespace, pod.Name, err) } // Returning recycler error is preferred, the pod will be deleted again on // the next retry. if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 8.5K bytes - Viewed (1) -
pkg/controller/volume/persistentvolume/recycle_test.go
expectedEvents: noevents, errors: noerrors, // Inject recycler into the controller and call syncVolume. The // recycler simulates one recycle() call that succeeds. test: wrapTestWithReclaimCalls(operationRecycle, []error{nil}, testSyncVolume), }, { // recycle volume bound by user name: "6-2 - successful recycle with prebound volume",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 00:37:30 UTC 2023 - 14.2K bytes - Viewed (0) -
pkg/volume/util/recyclerclient/recycler_client_test.go
newPodEvent(watch.Deleted, "podRecyclerDeleted", v1.PodPending, ""), }, expectedEvents: []mockEvent{ {v1.EventTypeNormal, "Successfully assigned recycler-for-podRecyclerDeleted to 127.0.0.1"}, }, expectedError: "failed to recycle volume: recycler pod was deleted", }, { // Another recycler pod is already running name: "RecyclerRunning",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 31 14:16:53 UTC 2022 - 8.5K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/options/options.go
fs.IntVar(&o.VolumeConfigFlags.PersistentVolumeRecyclerIncrementTimeoutNFS, "pv-recycler-increment-timeout-nfs", o.VolumeConfigFlags.PersistentVolumeRecyclerIncrementTimeoutNFS, "the increment of time added per Gi to ActiveDeadlineSeconds for an NFS scrubber pod") fs.StringVar(&o.VolumeConfigFlags.PersistentVolumeRecyclerPodTemplateFilePathHostPath, "pv-recycler-pod-template-filepath-hostpath",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 04 20:45:21 UTC 2019 - 5.6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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)