Documentation
¶
Index ¶
- func CreateCRDs(config *rest.Config, crds []runtime.Object) error
- func InstallCRDs(config *rest.Config, options InstallOptions) ([]runtime.Object, error)
- func UninstallCRDs(config *rest.Config, options InstallOptions) error
- func WaitForCRDs(config *rest.Config, crds []runtime.Object, options InstallOptions) error
- type InstallOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCRDs ¶
CreateCRDs creates the CRDs
func InstallCRDs ¶
InstallCRDs installs a collection of CRDs into a cluster by reading the crd yaml files from a directory
func UninstallCRDs ¶
func UninstallCRDs(config *rest.Config, options InstallOptions) error
UninstallCRDs uninstalls a collection of CRDs by reading the crd yaml files from a directory
func WaitForCRDs ¶
WaitForCRDs waits for the CRDs to appear in discovery
Types ¶
type InstallOptions ¶
type InstallOptions struct {
// Paths is a list of paths to the directories or files containing CRDs
Paths []string
// CRDs is a list of CRDs to install
CRDs []runtime.Object
// CRDContents is a map of CRDs filename to byte array, e.g. useful for embedded static content
CRDContents map[string][]byte
// ErrorIfPathMissing will cause an error if a Path does not exist
ErrorIfPathMissing bool
// MaxTime is the max time to wait
MaxTime time.Duration
// PollInterval is the interval to check
PollInterval time.Duration
// CleanUpAfterUse will cause the CRDs listed for installation to be
// uninstalled when terminating the test environment.
// Defaults to false.
CleanUpAfterUse bool
}
InstallOptions are the options for installing CRDs
Click to show internal directories.
Click to hide internal directories.