Documentation ¶
Index ¶
- func StartWithExtensions(env *envtest.Environment, ext *EnvironmentExtensions) (*rest.Config, error)
- func StopWithExtensions(env *envtest.Environment, ext *EnvironmentExtensions) error
- func WaitUntilAPIServicesAvailable(ctx context.Context, c client.Client, ...) error
- func WaitUntilAPIServicesReady(ctx context.Context, ext *EnvironmentExtensions, c client.Client, ...) error
- func WaitUntilAPIServicesReadyWithTimeout(timeout time.Duration, ext *EnvironmentExtensions, c client.Client, ...) error
- func WaitUntilGroupVersionsDiscoverable(ctx context.Context, c client.Client, scheme *runtime.Scheme, ...) error
- func WaitUntilGroupVersionsDiscoverableWithTimeout(timeout time.Duration, c client.Client, scheme *runtime.Scheme, ...) error
- func WaitUntilTypesDiscoverable(ctx context.Context, c client.Client, objs ...client.Object) error
- func WaitUntilTypesDiscoverableWithTimeout(timeout time.Duration, c client.Client, objs ...client.Object) error
- type APIServerInstallOptions
- type APIServiceInstallOptions
- func (o *APIServiceInstallOptions) AddAPIServerInstallOptions(opts APIServerInstallOptions) *APIServerInstallOptions
- func (o *APIServiceInstallOptions) AllAPIServerInstallOptions() []*APIServerInstallOptions
- func (o *APIServiceInstallOptions) Install(cfg *rest.Config) error
- func (o *APIServiceInstallOptions) SetupClientCA() error
- func (o *APIServiceInstallOptions) Stop() error
- type AdditionalService
- type EnvironmentExtensions
- func (e *EnvironmentExtensions) AddAPIServerInstallOptions(opts APIServerInstallOptions) *APIServerInstallOptions
- func (e *EnvironmentExtensions) GetAdditionalServiceHost(name string) string
- func (e *EnvironmentExtensions) GetAdditionalServiceHostPort(name string) (string, int)
- func (e *EnvironmentExtensions) GetAdditionalServicePort(name string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartWithExtensions ¶
func StartWithExtensions(env *envtest.Environment, ext *EnvironmentExtensions) (*rest.Config, error)
func StopWithExtensions ¶
func StopWithExtensions(env *envtest.Environment, ext *EnvironmentExtensions) error
func WaitUntilAPIServicesAvailable ¶
func WaitUntilAPIServicesAvailable(ctx context.Context, c client.Client, services ...*apiregistrationv1.APIService) error
Types ¶
type APIServerInstallOptions ¶
type APIServerInstallOptions struct { Paths []string ErrorIfPathMissing bool // LocalServingCertDir is the allocated directory for serving certificates. // it will be automatically populated by the local temp dir LocalServingCertDir string LocalServingPort int LocalServingHost string LocalServingHostExternalName string LocalServingCAData []byte APIServices []*apiregistrationv1.APIService ServiceNamespace string ServiceName string }
func (*APIServerInstallOptions) ApplyAPIServices ¶
func (o *APIServerInstallOptions) ApplyAPIServices(cfg *rest.Config) error
func (*APIServerInstallOptions) ModifyAPIServiceDefinitions ¶
func (o *APIServerInstallOptions) ModifyAPIServiceDefinitions(cfg *rest.Config) error
ModifyAPIServiceDefinitions modifies APIService definitions by: - applying CABundle based on the provided tinyca - applying service based on the created service
func (*APIServerInstallOptions) PrepWithoutInstalling ¶
func (o *APIServerInstallOptions) PrepWithoutInstalling(cfg *rest.Config) error
type APIServiceInstallOptions ¶
type APIServiceInstallOptions struct { ClientCertDir string ClientCAData []byte APIServerInstallOptions APIServers []APIServerInstallOptions }
func (*APIServiceInstallOptions) AddAPIServerInstallOptions ¶
func (o *APIServiceInstallOptions) AddAPIServerInstallOptions(opts APIServerInstallOptions) *APIServerInstallOptions
func (*APIServiceInstallOptions) AllAPIServerInstallOptions ¶
func (o *APIServiceInstallOptions) AllAPIServerInstallOptions() []*APIServerInstallOptions
func (*APIServiceInstallOptions) Install ¶
func (o *APIServiceInstallOptions) Install(cfg *rest.Config) error
func (*APIServiceInstallOptions) SetupClientCA ¶
func (o *APIServiceInstallOptions) SetupClientCA() error
func (*APIServiceInstallOptions) Stop ¶
func (o *APIServiceInstallOptions) Stop() error
type AdditionalService ¶
type EnvironmentExtensions ¶
type EnvironmentExtensions struct { APIServiceInstallOptions APIServiceInstallOptions APIServices []*apiregistrationv1.APIService // APIServiceDirectoryPaths is a list of paths containing APIService yaml or json configs. // If both this field and Paths field in APIServiceInstallOptions are specified, the // values are merged. APIServiceDirectoryPaths []string ErrorIfAPIServicePathIsMissing bool AdditionalServices []AdditionalService }
func (*EnvironmentExtensions) AddAPIServerInstallOptions ¶
func (e *EnvironmentExtensions) AddAPIServerInstallOptions(opts APIServerInstallOptions) *APIServerInstallOptions
func (*EnvironmentExtensions) GetAdditionalServiceHost ¶
func (e *EnvironmentExtensions) GetAdditionalServiceHost(name string) string
func (*EnvironmentExtensions) GetAdditionalServiceHostPort ¶
func (e *EnvironmentExtensions) GetAdditionalServiceHostPort(name string) (string, int)
func (*EnvironmentExtensions) GetAdditionalServicePort ¶
func (e *EnvironmentExtensions) GetAdditionalServicePort(name string) int
Click to show internal directories.
Click to hide internal directories.