crd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCRDs

func CreateCRDs(config *rest.Config, crds []runtime.Object) error

CreateCRDs creates the CRDs

func InstallCRDs

func InstallCRDs(config *rest.Config, options InstallOptions) ([]runtime.Object, error)

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

func WaitForCRDs(config *rest.Config, crds []runtime.Object, options InstallOptions) error

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

Jump to

Keyboard shortcuts

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