suite

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	KubeAPIServerEnvironment envtest.Environment

	AggregatedAPIServerBuildArgs []string

	AggregatedAPIServerFlags        []string
	AggregatedAPIServerBinaryPath   string
	AggregatedAPIServerSession      *gexec.Session
	AggregatedAPIServerSecurePort   int
	AggregatedAPIServerInsecurePort int
	LoopbackClientConfig            *rest.Config
}

func NewDefaultTestingEnvironment

func NewDefaultTestingEnvironment() *Environment

func (*Environment) StartLocalAggregatedAPIServer

func (e *Environment) StartLocalAggregatedAPIServer(group, version string) error

func (*Environment) StartLocalKubeAPIServer

func (e *Environment) StartLocalKubeAPIServer() error

func (*Environment) StopLocalAggregatedAPIServer

func (e *Environment) StopLocalAggregatedAPIServer() (err error)

func (*Environment) StopLocalKubeAPIServer

func (e *Environment) StopLocalKubeAPIServer() (err error)

type ReconcilerInterceptor

type ReconcilerInterceptor struct {
	BeforeReconcile func(req reconcile.Request)
	AfterReconcile  func(req reconcile.Request, err error)
	// contains filtered or unexported fields
}

ReconcilerInterceptor is only for testing, allowing developers to intercept the reconcile func, before and after.

func CreateProxyReconciler

func CreateProxyReconciler(reconciler reconcile.Reconciler) *ReconcilerInterceptor

func (*ReconcilerInterceptor) Reconcile

func (r *ReconcilerInterceptor) Reconcile(req reconcile.Request) (result reconcile.Result, err error)

Jump to

Keyboard shortcuts

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