resource

package
v0.0.0-...-40333c2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCRDs

func ApplyCRDs(ctx context.Context, client apiextensionsClient.Interface, recorder events.Recorder, ownerRef *metav1.OwnerReference,
	assetFunc resourceapply.AssetFunc, files ...string,
) error

func ApplyManifests

func ApplyManifests(ctx context.Context, kubeClient kubernetes.Interface, recorder events.Recorder,
	cache resourceapply.ResourceCache, assetFunc resourceapply.AssetFunc, files ...string,
) error

func AssetFromFile

func AssetFromFile(manifestFiles embed.FS, config interface{}) resourceapply.AssetFunc

func DeleteFromManifests

func DeleteFromManifests(ctx context.Context, kubeClient kubernetes.Interface, recorder events.Recorder, assetFunc resourceapply.AssetFunc,
	files ...string,
) error

func GetCurrentNamespace

func GetCurrentNamespace(defaultNamespace string) string

GetCurrentNamespace returns the current namespace from file system, if the namespace is not found, it returns the defaultNamespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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