Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitKubeBuilderForTest ¶
func InitKubeBuilderForTest(options ...InitKubeConfigOption) *rest.Config
InitKubeBuilderForTest call this function to init kubebuilder for test
Types ¶
type InitKubeConfigOption ¶
type InitKubeConfigOption interface {
ApplyToConfig(*initKubeBuilderConfig)
}
InitKubeConfigOption the option for init kubebuilder for test
type WithCRDPath ¶
type WithCRDPath string
WithCRDPath configure the path to load CRD files The path is relative to the working directory
func (WithCRDPath) ApplyToConfig ¶
func (op WithCRDPath) ApplyToConfig(cfg *initKubeBuilderConfig)
ApplyToConfig apply to initKubeBuilderConfig
type WithOnConfigLoaded ¶
WithOnConfigLoaded configure the callback when rest.Config is bootstrapped
func (WithOnConfigLoaded) ApplyToConfig ¶
func (op WithOnConfigLoaded) ApplyToConfig(cfg *initKubeBuilderConfig)
ApplyToConfig apply to initKubeBuilderConfig
Click to show internal directories.
Click to hide internal directories.