assets

package
v0.0.0-...-f67c6c8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCRDAndWaitForEstablish

func ApplyCRDAndWaitForEstablish(ctx context.Context, crds []string, kubeconfigPath string) error

func ApplyCRDs

func ApplyCRDs(ctx context.Context, cfg *config.Config) error

func ApplyClusterRoleBindings

func ApplyClusterRoleBindings(ctx context.Context, rbacs []string, kubeconfigPath string) error

func ApplyClusterRoles

func ApplyClusterRoles(ctx context.Context, rbacs []string, kubeconfigPath string) error

func ApplyConfigMapWithData

func ApplyConfigMapWithData(ctx context.Context, cmPath string, data map[string]string, kubeconfigPath string) error

func ApplyConfigMaps

func ApplyConfigMaps(ctx context.Context, cores []string, render RenderFunc, params RenderParams, kubeconfigPath string) error

func ApplyDaemonSets

func ApplyDaemonSets(ctx context.Context, apps []string, render RenderFunc, params RenderParams, kubeconfigPath string) error

func ApplyDeployments

func ApplyDeployments(ctx context.Context, dps []string, render RenderFunc, params RenderParams, kubeconfigPath string) error

func ApplyGeneric

func ApplyGeneric(
	ctx context.Context,
	resources []string,
	render RenderFuncV2,
	params RenderParams,
	modify ModifyOnExists,
	kubeconfigPath string,
) error

func ApplyNamespaces

func ApplyNamespaces(ctx context.Context, cores []string, kubeconfigPath string) error

func ApplyPriorityClasses

func ApplyPriorityClasses(ctx context.Context, pcs []string, kubeconfigPath string) error

func ApplyRoleBindings

func ApplyRoleBindings(ctx context.Context, rbacs []string, kubeconfigPath string) error

func ApplyRoles

func ApplyRoles(ctx context.Context, rbacs []string, kubeconfigPath string) error

func ApplySCCs

func ApplySCCs(ctx context.Context, sccs []string, render RenderFunc, params RenderParams, kubeconfigPath string) error

func ApplySecretWithData

func ApplySecretWithData(ctx context.Context, secretPath string, data map[string][]byte, kubeconfigPath string) error

func ApplyServiceAccounts

func ApplyServiceAccounts(ctx context.Context, cores []string, kubeconfigPath string) error

func ApplyServices

func ApplyServices(ctx context.Context, cores []string, render RenderFunc, params RenderParams, kubeconfigPath string) error

func ApplyStorageClasses

func ApplyStorageClasses(ctx context.Context, scs []string, render RenderFunc, params RenderParams, kubeconfigPath string) error

func ApplyValidatingWebhookConfiguration

func ApplyValidatingWebhookConfiguration(ctx context.Context, admissionRegistrations []string, kubeconfigPath string) error

func ApplyVolumeSnapshotClass

func ApplyVolumeSnapshotClass(ctx context.Context, kubeconfigPath string, vcs []string, render RenderFunc, params RenderParams) error

func DeleteClusterRoleBindings

func DeleteClusterRoleBindings(ctx context.Context, rbacs []string, kubeconfigPath string) error

func DeleteClusterRoles

func DeleteClusterRoles(ctx context.Context, rbacs []string, kubeconfigPath string) error

func DeleteGeneric

func DeleteGeneric(
	ctx context.Context,
	objects []runtime.Object,
	kubeconfigPath string,
) error

func DeleteNamespaces

func DeleteNamespaces(ctx context.Context, cores []string, kubeconfigPath string) error

func WaitForCrdsEstablished

func WaitForCrdsEstablished(ctx context.Context, cfg *config.Config) error

Types

type ModifyOnExists

type ModifyOnExists func(modified *bool, existing, required *unstructured.Unstructured)

ModifyOnExists is a function that modifies the existing object based on the required object. The first argument is a pointer to a boolean that should be set to true if the object was modified. i.e. `*modified = true` The second argument is a pointer to the existing object on the cluster. The third argument is a pointer to the required object from the template. If Not set, the object will only have its metadata fields updated. If set, the object will be modified based on the function.

type RenderFunc

type RenderFunc func([]byte, RenderParams) ([]byte, error)

DEPRECATED: RenderFunc is deprecated and should not be used. TODO: Remove RenderFunc once all assets are migrated

type RenderFuncV2

type RenderFuncV2 func(io.Reader, RenderParams) (io.Reader, error)

RenderFuncV2 is a better version of RenderFunc, using io.Reader

func ToRenderFuncV2

func ToRenderFuncV2(f RenderFunc) RenderFuncV2

ToRenderFuncV2 converts RenderFunc to RenderFuncV2 by reading the data from io.Reader This is a bottleneck for stream processing, but it is necessary for the transition.

type RenderParams

type RenderParams map[string]interface{}

Jump to

Keyboard shortcuts

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