Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for NewUncertainProgressError (0.38 sec)

  1. pkg/volume/util/types/types.go

    type UncertainProgressError struct {
    	msg string
    }
    
    func (err *UncertainProgressError) Error() string {
    	return err.msg
    }
    
    // NewUncertainProgressError creates an instance of UncertainProgressError type
    func NewUncertainProgressError(msg string) *UncertainProgressError {
    	return &UncertainProgressError{msg: msg}
    }
    
    // IsOperationFinishedError checks if given error is of type that indicates
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 17:23:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. pkg/volume/testing/testing.go

    }
    
    func (fv *FakeVolume) setupInternal(mounterArgs volume.MounterArgs) error {
    	if fv.VolName == TimeoutOnSetupVolumeName {
    		fv.VolumeMountState[fv.VolName] = volumeMountUncertain
    		return volumetypes.NewUncertainProgressError("time out on setup")
    	}
    
    	if fv.VolName == FailOnSetupVolumeName {
    		fv.VolumeMountState[fv.VolName] = volumeNotMounted
    		return fmt.Errorf("mounting volume failed")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_client.go

    			Mount: mountVolume,
    		}
    	}
    
    	_, err = nodeClient.NodePublishVolume(ctx, req)
    	if err != nil && !isFinalError(err) {
    		return volumetypes.NewUncertainProgressError(err.Error())
    	}
    	return err
    }
    
    func (c *csiDriverClient) NodeExpandVolume(ctx context.Context, opts csiResizeOptions) (resource.Quantity, error) {
    	if c.nodeV1ClientCreator == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 20 10:15:36 UTC 2022
    - 22.1K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_mounter.go

    		if err != nil {
    			// The volume is mounted. Return UncertainProgressError, so kubelet will unmount it when user deletes the pod.
    			return volumetypes.NewUncertainProgressError(fmt.Sprintf("error checking for SELinux support: %s", err))
    		}
    	}
    
    	if !driverSupportsCSIVolumeMountGroup && c.supportsFSGroup(fsType, mounterArgs.FsGroup, fsGroupPolicy) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 10:47:59 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_client_test.go

    			Mount: mountVolume,
    		}
    	}
    
    	_, err := c.nodeClient.NodePublishVolume(ctx, req)
    	if err != nil && !isFinalError(err) {
    		return volumetypes.NewUncertainProgressError(err.Error())
    	}
    	return err
    }
    
    func (c *fakeCsiDriverClient) NodeUnpublishVolume(ctx context.Context, volID string, targetPath string) error {
    	c.t.Log("calling fake.NodeUnpublishVolume...")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  6. pkg/volume/iscsi/iscsi_util.go

    	if err = util.persistISCSI(b); err != nil {
    		// Return uncertain error so kubelet calls Unmount / Unmap when the pod
    		// is deleted.
    		return "", types.NewUncertainProgressError(err.Error())
    	}
    	return devicePath, nil
    }
    
    // persistISCSI saves iSCSI volume configuration for DetachDisk into global
    // mount / map directory.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_mounter_test.go

    func TestMounterSetupWithStatusTracking(t *testing.T) {
    	fakeClient := fakeclient.NewSimpleClientset()
    	plug, tmpDir := newTestPlugin(t, fakeClient)
    	defer os.RemoveAll(tmpDir)
    	nonFinalError := volumetypes.NewUncertainProgressError("non-final-error")
    	transientError := volumetypes.NewTransientOperationFailure("transient-error")
    
    	testCases := []struct {
    		name             string
    		podUID           types.UID
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_attacher_test.go

    			}
    		}
    	}
    }
    
    func TestAttacherMountDevice(t *testing.T) {
    	pvName := "test-pv"
    	var testFSGroup int64 = 3000
    	nonFinalError := volumetypes.NewUncertainProgressError("")
    	transientError := volumetypes.NewTransientOperationFailure("")
    
    	testCases := []struct {
    		testName                       string
    		volName                        string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  9. pkg/volume/util/operationexecutor/operation_generator.go

    			defer func() {
    				if operationContext.EventErr != nil {
    					errText := operationContext.EventErr.Error()
    					og.markVolumeErrorState(volumeToMount, markVolumeOpts, volumetypes.NewUncertainProgressError(errText), actualStateOfWorld)
    				}
    			}()
    
    			// if pluginDevicePath is provided, assume attacher may not provide device
    			// or attachment flow uses SetupDevice to get device path
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top