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
Click to show internal directories.
Click to hide internal directories.