Documentation ¶
Index ¶
- func CreateDeployment(kubeClient kubernetes.Interface, namespace string, d *appsv1.Deployment) error
- func CreateNamespace(kubeClient kubernetes.Interface, name string) (*v1.Namespace, error)
- func CreateSubmarine(clientset clientset.Interface, namespace string, submarine *v1alpha1.Submarine) error
- func DeleteDeployment(kubeClient kubernetes.Interface, namespace, name string) error
- func DeleteNamespace(kubeClient kubernetes.Interface, name string) error
- func DeleteSubmarine(clientset clientset.Interface, namespace string, name string) error
- func GetSubmarine(clientset clientset.Interface, namespace string, name string) (*v1alpha1.Submarine, error)
- func MakeDeployment(pathToYaml string) (*appsv1.Deployment, error)
- func MakeOperatorDeployment() *appsv1.Deployment
- func MakeSubmarineFromYaml(pathToYaml string) (*v1alpha1.Submarine, error)
- func PathToOSFile(relativePath string) (*os.File, error)
- func PodRunningAndReady(pod corev1.Pod) (bool, error)
- func UpdateSubmarine(clientset clientset.Interface, namespace string, submarine *v1alpha1.Submarine) error
- func WaitForPodsReady(kubeClient kubernetes.Interface, namespace string, timeout time.Duration, ...) error
- func WaitUntilDeploymentGone(kubeClient kubernetes.Interface, namespace, name string, timeout time.Duration) error
- type Framework
- type TestCtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeployment(kubeClient kubernetes.Interface, namespace string, d *appsv1.Deployment) error
func CreateNamespace ¶
func CreateSubmarine ¶
func DeleteDeployment ¶
func DeleteDeployment(kubeClient kubernetes.Interface, namespace, name string) error
func DeleteNamespace ¶
func DeleteNamespace(kubeClient kubernetes.Interface, name string) error
func DeleteSubmarine ¶
func GetSubmarine ¶
func MakeDeployment ¶
func MakeDeployment(pathToYaml string) (*appsv1.Deployment, error)
func MakeOperatorDeployment ¶
func MakeOperatorDeployment() *appsv1.Deployment
func MakeSubmarineFromYaml ¶
func PathToOSFile ¶
PathToOSFile gets the absolute path from relative path.
func PodRunningAndReady ¶
PodRunningAndReady returns whether a pod is running and each container has passed it's ready state.
func UpdateSubmarine ¶
func WaitForPodsReady ¶
func WaitForPodsReady(kubeClient kubernetes.Interface, namespace string, timeout time.Duration, expectedReplicas int, opts metav1.ListOptions) error
WaitForPodsReady waits for a selection of Pods to be running and each container to pass its readiness check.
func WaitUntilDeploymentGone ¶
Types ¶
type Framework ¶
type TestCtx ¶
type TestCtx struct { ID string // contains filtered or unexported fields }
func (*TestCtx) AddFinalizerFn ¶
func (ctx *TestCtx) AddFinalizerFn(fn finalizerFn)
func (*TestCtx) CreateNamespace ¶
Click to show internal directories.
Click to hide internal directories.