resource

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

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCRDs

func CheckCRDs(ctx context.Context, crds []*apiextensionsv1.CustomResourceDefinition,
	runtimeClient client.Client, createIfNotPresent bool,
) error

func CheckCRs

func CheckCRs(ctx context.Context, crs []*unstructured.Unstructured, runtimeClient client.Client,
	createIfNotPresent bool,
) error

func GetCRDsFromPath

func GetCRDsFromPath(ctx context.Context, filePath string) ([]*apiextensionsv1.CustomResourceDefinition, error)

func GetStringifiedYamlFromDirPath

func GetStringifiedYamlFromDirPath(dirPath string, logger logr.Logger) (string, error)

func RemoveCRDs

func RemoveCRDs(ctx context.Context, crds []*apiextensionsv1.CustomResourceDefinition,
	runtimeClient client.Client,
) error

func RemoveCRs

func RemoveCRs(ctx context.Context, crs []*unstructured.Unstructured,
	runtimeClient client.Client,
) (bool, error)

Types

type ChartKind

type ChartKind int
const (
	HelmKind ChartKind = iota
	KustomizeKind
	UnknownKind
)

func GetChartKind

func GetChartKind(deployInfo types.InstallInfo) (ChartKind, error)

Jump to

Keyboard shortcuts

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