utils

package
v0.0.0-...-0312a9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(clientset *kubernetes.Clientset, namespace string) error

func CreateTestNamespace

func CreateTestNamespace(clientset *kubernetes.Clientset, namespace string)

CreateTestNamespace creates one namespace with the given name

func DeleteTestNamespace

func DeleteTestNamespace(clientset *kubernetes.Clientset, namespace string)

DeleteTestNamespace removes one namespace and waits until it's deleted

func IsOCP

func IsOCP(config *rest.Config) (bool, error)

func SetPullSecret

func SetPullSecret(clientset *kubernetes.Clientset, serviceAccount string, namespace string)

func WaitForDeploymentReady

func WaitForDeploymentReady(clientset *kubernetes.Clientset, timeout time.Duration, namespace string, deploymentName string, expectedReplicas int)

func WaitForObjectDeleted

func WaitForObjectDeleted(name string, apiCall func() (interface{}, error))

func WaitForOperatorDeploymentReady

func WaitForOperatorDeploymentReady(clientset *kubernetes.Clientset, namespace string, operatorDeploymentName string)

func WaitForOperatorDeploymentRemoved

func WaitForOperatorDeploymentRemoved(clientset *kubernetes.Clientset, namespace string, operatorDeploymentName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL