Documentation
¶
Index ¶
- Constants
- Variables
- func GetConfigFromFile(kubeconfig string) (*rest.Config, error)
- func GetFakeClient() client.Client
- func GetFakeClientWithObjects(initObjs ...client.Object) client.Client
- func GetLogger() logr.Logger
- func GetNonReplicationEnabledSC(provisionerName, scName string) *storagev1.StorageClass
- func GetPVCObj(pvcName string, namespace string, sc string) *v1.PersistentVolumeClaim
- func GetPVObj(name, volHandle, provisionerName, scName string, ...) *v1.PersistentVolume
- func GetParams(remoteClusterID, remoteSCName string) map[string]string
- func GetRGObj(name, driverName, remoteClusterID, pgID, remotePGID string, ...) *storagev1alpha1.DellCSIReplicationGroup
- func GetReplicationEnabledSC(provisionerName, scName, remoteSCName, remoteClusterID string) *storagev1.StorageClass
- func InitializeSchemes()
- func RunServer(stubsPath string)
- func StopMockServer()
- func ValidateAnnotations(annotations map[string]string, t *testing.T)
- func ValidateRemotePVAnnotations(annotations map[string]string, t *testing.T)
- func ValidateRemoteRGAnnotations(annotations map[string]string, t *testing.T)
- func WaitForAllToBeBound(ctx context.Context, k8sClient client.Client, t *testing.T) error
- type Common
- type Driver
- type MockUtils
Constants ¶
View Source
const ( FakePVName = "fake-pv" FakePVCName = "fake-pvc" FakeSCName = "fake-sc" FakeDriverName = "fake-csi-driver" FakeRemoteSCName = "fake-remote-sc" FakeRGName = "fake-rg" FakeNamespaceName = "fake-namespace" Self = "self" RemoteClusterID = "remoteCluster" SourceClusterID = "sourceCluster" LocalPGID = "l-group-id" RemotePGID = "r-group-id" ContextPrefix = "csi-fake" )
View Source
const PVCName = "test-pvc"
Variables ¶
View Source
var MockServer *grpc.Server
View Source
var Scheme = runtime.NewScheme()
Functions ¶
func GetConfigFromFile ¶
GetConfigFromFile creates *rest.Config object from provided config path
func GetFakeClient ¶
func GetNonReplicationEnabledSC ¶
func GetNonReplicationEnabledSC(provisionerName, scName string) *storagev1.StorageClass
func GetPVCObj ¶
func GetPVCObj(pvcName string, namespace string, sc string) *v1.PersistentVolumeClaim
func GetPVObj ¶
func GetPVObj(name, volHandle, provisionerName, scName string, volAttributes map[string]string) *v1.PersistentVolume
func GetRGObj ¶
func GetRGObj(name, driverName, remoteClusterID, pgID, remotePGID string, params, remoteParams map[string]string) *storagev1alpha1.DellCSIReplicationGroup
func GetReplicationEnabledSC ¶
func GetReplicationEnabledSC(provisionerName, scName, remoteSCName, remoteClusterID string) *storagev1.StorageClass
func InitializeSchemes ¶
func InitializeSchemes()
func StopMockServer ¶
func StopMockServer()
Types ¶
Click to show internal directories.
Click to hide internal directories.