bootstrap

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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

type WithOnConfigLoaded func(*rest.Config)

WithOnConfigLoaded configure the callback when rest.Config is bootstrapped

func (WithOnConfigLoaded) ApplyToConfig

func (op WithOnConfigLoaded) ApplyToConfig(cfg *initKubeBuilderConfig)

ApplyToConfig apply to initKubeBuilderConfig

Jump to

Keyboard shortcuts

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