Documentation ¶
Index ¶
- Constants
- type DynamicallyProvisionePodWithVolTest
- type PodDetails
- type PodExecCheck
- type TestPersistentVolumeClaim
- type TestPod
- func (t *TestPod) Cleanup()
- func (t *TestPod) Create()
- func (t *TestPod) Delete()
- func (t *TestPod) Exec(command []string, expectedString string) error
- func (t *TestPod) SetupVolume(pvc *v1.PersistentVolumeClaim, name, mountPath string, readOnly bool)
- func (t *TestPod) WaitForRunning()
- func (t *TestPod) WaitForRunningSlow() error
- func (t *TestPod) WaitForSuccess() error
- type TestSecret
- type VolumeDetails
- type VolumeMountDetails
Constants ¶
View Source
const ( BusyboxTestImage = "gcr.io/google_containers/busybox:1.24" MountPath = "/devtestvol" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicallyProvisionePodWithVolTest ¶
type DynamicallyProvisionePodWithVolTest struct { Pods []PodDetails PodCheck *PodExecCheck }
DynamicallyProvisioneVolPodWRTest will provision required PVC and Deployment Testing if the Pod can write and read to mounted volumes
type PodDetails ¶
type PodDetails struct { Cmd string CmdExits bool Volumes []VolumeDetails }
func (*PodDetails) SetupWithDynamicVolumes ¶
type PodExecCheck ¶
type TestPersistentVolumeClaim ¶
type TestPersistentVolumeClaim struct {
// contains filtered or unexported fields
}
func NewTestPersistentVolumeClaim ¶
func NewTestPersistentVolumeClaim( c clientset.Interface, pvcName string, ns *v1.Namespace, claimSize string, accessmode *v1.PersistentVolumeAccessMode, sc *storagev1.StorageClass) *TestPersistentVolumeClaim
func (*TestPersistentVolumeClaim) Cleanup ¶
func (t *TestPersistentVolumeClaim) Cleanup()
func (*TestPersistentVolumeClaim) Create ¶
func (t *TestPersistentVolumeClaim) Create()
func (*TestPersistentVolumeClaim) ValidateProvisionedPersistentVolume ¶
func (t *TestPersistentVolumeClaim) ValidateProvisionedPersistentVolume()
func (*TestPersistentVolumeClaim) WaitForBound ¶
func (t *TestPersistentVolumeClaim) WaitForBound() v1.PersistentVolumeClaim
type TestPod ¶
type TestPod struct {
// contains filtered or unexported fields
}
func (*TestPod) SetupVolume ¶
func (t *TestPod) SetupVolume(pvc *v1.PersistentVolumeClaim, name, mountPath string, readOnly bool)
func (*TestPod) WaitForRunning ¶
func (t *TestPod) WaitForRunning()
func (*TestPod) WaitForRunningSlow ¶
func (*TestPod) WaitForSuccess ¶
type TestSecret ¶
type TestSecret struct {
// contains filtered or unexported fields
}
func NewSecret ¶
func NewSecret(c clientset.Interface, name, stype, ns, cosEndpoint, locationConstraint, bucketName, accessKey, secretKey string) *TestSecret
func (*TestSecret) Cleanup ¶
func (s *TestSecret) Cleanup()
func (*TestSecret) Create ¶
func (s *TestSecret) Create()
type VolumeDetails ¶
type VolumeDetails struct { PVCName string //PVC Name VolumeType string //PVC SC VolumeMount VolumeMountDetails ClaimSize string //PVC Capacity AccessMode *v1.PersistentVolumeAccessMode // contains filtered or unexported fields }
func (*VolumeDetails) SetupDynamicPersistentVolumeClaim ¶
func (volume *VolumeDetails) SetupDynamicPersistentVolumeClaim(client clientset.Interface, namespace *v1.Namespace) (*TestPersistentVolumeClaim, []func())
type VolumeMountDetails ¶
Click to show internal directories.
Click to hide internal directories.