manifests

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	InitManifestSuffix     = "-init-manifests"
	LastAppliedManifestKey = "vcluster.loft.sh/last-applied-init-manifests"
)

Variables

This section is empty.

Functions

func ApplyGivenInitManifests

func ApplyGivenInitManifests(ctx context.Context, vClient client.Client, vConfig *rest.Config, rawManifests, lastAppliedManifests string) error

func ManifestStringToUnstructuredArray

func ManifestStringToUnstructuredArray(out, defaultNamespace string) ([]*unstructured.Unstructured, error)

Types

type InitManifestsConfigMapReconciler

type InitManifestsConfigMapReconciler struct {
	Log loghelper.Logger

	LocalClient    client.Client
	VirtualManager ctrl.Manager
}

func (*InitManifestsConfigMapReconciler) Reconcile

func (*InitManifestsConfigMapReconciler) SetupWithManager

func (r *InitManifestsConfigMapReconciler) SetupWithManager(hostMgr ctrl.Manager) error

type KObject

type KObject struct {
	ApiVersion string
	Kind       string
	Namespace  string
	Name       string
}

func UnstructuredToKObject

func UnstructuredToKObject(obj unstructured.Unstructured) KObject

func (*KObject) Equals

func (k *KObject) Equals(obj unstructured.Unstructured) bool

type UnstructuredMap

type UnstructuredMap map[KObject]*unstructured.Unstructured

Jump to

Keyboard shortcuts

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