Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hostPathProvisioner (0.11 sec)

  1. pkg/volume/hostpath/host_path.go

    func (c *hostPathUnmounter) TearDownAt(dir string) error {
    	return fmt.Errorf("TearDownAt() does not make sense for host paths")
    }
    
    // hostPathProvisioner implements a Provisioner for the HostPath plugin
    // This implementation is meant for testing only and only works in a single node cluster.
    type hostPathProvisioner struct {
    	host     volume.VolumeHost
    	options  volume.VolumeOptions
    	plugin   *hostPathPlugin
    	basePath string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. pkg/volume/hostpath/host_path_test.go

    	creator, err := plug.NewProvisioner(logger, options)
    	if err != nil {
    		t.Fatalf("Failed to make a new Provisioner: %v", err)
    	}
    
    	hostPathCreator, ok := creator.(*hostPathProvisioner)
    	if !ok {
    		t.Fatal("Not a hostPathProvisioner")
    	}
    	hostPathCreator.basePath = fmt.Sprintf("%s.%s", "hostPath_pv", uuid.NewUUID())
    
    	pv, err := hostPathCreator.Provision(nil, nil)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
Back to top