common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMachinePool

func GetMachinePool(cd *hivev1.ClusterDeployment, poolName string) *hivev1.MachinePool

func JSONDiff

func JSONDiff(a, b interface{}) ([]byte, error)

func MustGetClient

func MustGetClient() client.Client

func MustGetClientFromConfig

func MustGetClientFromConfig(cfg *rest.Config) client.Client

func MustGetClusterDeployment

func MustGetClusterDeployment() *hivev1.ClusterDeployment

func MustGetClusterDeploymentClientConfig

func MustGetClusterDeploymentClientConfig() *rest.Config

func MustGetConfig

func MustGetConfig() *rest.Config

func MustGetDynamicClient

func MustGetDynamicClient() dynamic.Interface

func MustGetInstalledClusterDeployment

func MustGetInstalledClusterDeployment() *hivev1.ClusterDeployment

func MustGetKubernetesClient

func MustGetKubernetesClient() kclient.Interface

func WaitForAPIService

func WaitForAPIService(c apiregv1client.ApiregistrationV1Interface, name string, testFunc func(*apiregv1.APIService) bool, timeOut time.Duration) error

func WaitForAPIServiceAvailable

func WaitForAPIServiceAvailable(c apiregv1client.ApiregistrationV1Interface, name string, timeOut time.Duration) error

func WaitForDeployment

func WaitForDeployment(c kclient.Interface, namespace, name string, testFunc func(*appsv1.Deployment) bool, timeOut time.Duration) error

func WaitForDeploymentReady

func WaitForDeploymentReady(c kclient.Interface, namespace, name string, timeOut time.Duration) error

func WaitForMachinePoolNameLease

func WaitForMachinePoolNameLease(config *rest.Config, namespace, poolName string, timeOut time.Duration) (string, error)

WaitForMachinePoolNameLease waits for a lease to appear in the given namespace for the given pool.

func WaitForMachineSets

func WaitForMachineSets(cfg *rest.Config, testFunc func([]*machinev1.MachineSet) bool, timeOut time.Duration) error

func WaitForMachines

func WaitForMachines(cfg *rest.Config, testFunc func([]*machinev1.Machine) bool, timeOut time.Duration) error

func WaitForNodes

func WaitForNodes(cfg *rest.Config, testFunc func([]*corev1.Node) bool, timeOut time.Duration) error

func WaitForService

func WaitForService(c kclient.Interface, namespace, name string, testFunc func(*corev1.Service) bool, timeOut time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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