app

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IntentOwnerKey = "intent.yndd.io/owner"
)

Variables

This section is empty.

Functions

func GetMeta

func GetMeta(mr resource.Managed, labels, annotations map[string]string) metav1.ObjectMeta

Types

type Gvk added in v0.0.9

type Gvk struct {
	// contains filtered or unexported fields
}

type Intent added in v0.0.8

type Intent interface {
	AddEntry(gvk, name string, o Object, r resource.Managed)
	Apply(ctx context.Context) error
}

func New added in v0.0.8

func New(ii *IntentInfo) Intent

type IntentInfo added in v0.0.9

type IntentInfo struct {
	Log logging.Logger
	// parent intent info
	Name      string
	Namespace string
	// k8s client
	Client resource.ClientApplicator
}

type Object added in v0.0.9

type Object interface {
	List(ctx context.Context, opts []client.ListOption) (resource.ManagedList, error)
}

Jump to

Keyboard shortcuts

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