framework

package
v0.0.0-...-5e97683 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFromYAML

func CreateFromYAML(ctx context.Context, yamlFile []byte, cl client.Client) error

func DeleteAllSpecialResources

func DeleteAllSpecialResources(ctx context.Context, cl client.Client) error

func DeleteFromYAML

func DeleteFromYAML(ctx context.Context, yamlFile []byte, cl client.Client) error

func DeleteFromYAMLWithCR

func DeleteFromYAMLWithCR(ctx context.Context, yamlFile []byte, cl client.Client) error

Don't use this to delete the CRD or undeploy the operator -- CR deletion will fail

func NewControllerRuntimeClient

func NewControllerRuntimeClient() (client.Client, error)

Types

type ClientSet

func NewClientSet

func NewClientSet(config Config) *ClientSet

NewClientSet returns a *ClientBuilder with the given kubeconfig.

type Config

type Config struct {
	Namespace string `envconfig:"NAMESPACE" default:"special-resource-operator"`
}

Jump to

Keyboard shortcuts

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