service

package
v0.0.0-...-5df6d43 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoNamespace       = errors.New("error no namespace provided")
	ErrListingService    = errors.New("error listing services in namespace")
	ErrNoService         = errors.New("error no service in namespace")
	ErrNamespaceEmpty    = errors.New("error namespace list empty")
	ErrServiceNotHealthy = errors.New("error service not in healthy state")
	ErrInvalidInterval   = errors.New("error interval or timeout is invalid")
	ErrServiceFailed     = errors.New("error service test validation failed")
)

Functions

func CheckServices

func CheckServices(namespaces []string, clientset kubernetes.Interface, interval, timeout time.Duration) error

Types

type DefaultRetryer

type DefaultRetryer struct{}

func (*DefaultRetryer) RetryOnConflict

func (r *DefaultRetryer) RetryOnConflict(backoff wait.Backoff, fn func() error) error

type Retryer

type Retryer interface {
	RetryOnConflict(backoff wait.Backoff, fn func() error) error
}

TODO: Come up with better solution This is done so that unit test can work fine as retry.RetryOnConflict only works on real Kubernetes cluster we are using fake to build up mock client for UT

Jump to

Keyboard shortcuts

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