Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetPluginMgr (0.15 sec)

  1. pkg/volume/testing/volume_host.go

    	"k8s.io/kubernetes/pkg/volume/util/subpath"
    	"k8s.io/mount-utils"
    	"k8s.io/utils/exec"
    	testingexec "k8s.io/utils/exec/testing"
    )
    
    type FakeVolumeHost interface {
    	VolumeHost
    
    	GetPluginMgr() *VolumePluginMgr
    }
    
    // fakeVolumeHost is useful for testing volume plugins.
    // TODO: Extract fields specific to fakeKubeletVolumeHost and fakeAttachDetachVolumeHost.
    type fakeVolumeHost struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_plugin_test.go

    		)
    	default:
    		t.Fatalf("Unsupported volume host type")
    	}
    
    	fakeHost, ok := host.(volumetest.FakeVolumeHost)
    	if !ok {
    		t.Fatalf("Unsupported volume host type")
    	}
    
    	pluginMgr := fakeHost.GetPluginMgr()
    	plug, err := pluginMgr.FindPluginByName(CSIPluginName)
    	if err != nil {
    		t.Fatalf("can't find plugin %v", CSIPluginName)
    	}
    
    	csiPlug, ok := plug.(*csiPlugin)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top