types

package
v0.6.0-beta.25 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CREATE = LifecycleAction("CREATE")
	DELETE = LifecycleAction("DELETE")
	UPDATE = LifecycleAction("UPDATE")
	PATCH  = LifecycleAction("PATCH")
	STATUS = LifecycleAction("STATUS")
	NOOP   = LifecycleAction("NOOP")
)

Variables

This section is empty.

Functions

func FindAll added in v0.6.0

func FindAll[T interface{}](dag *graph.DAG) []graph.Vertex

func FindAllNot added in v0.6.0

func FindAllNot[T interface{}](dag *graph.DAG) []graph.Vertex

Types

type LifecycleAction added in v0.6.0

type LifecycleAction string

func ActionCreatePtr added in v0.6.0

func ActionCreatePtr() *LifecycleAction

func ActionDeletePtr added in v0.6.0

func ActionDeletePtr() *LifecycleAction

func ActionNoopPtr added in v0.6.0

func ActionNoopPtr() *LifecycleAction

func ActionPatchPtr added in v0.6.0

func ActionPatchPtr() *LifecycleAction

func ActionPtr added in v0.6.0

func ActionPtr(action LifecycleAction) *LifecycleAction

func ActionStatusPtr added in v0.6.0

func ActionStatusPtr() *LifecycleAction

func ActionUpdatePtr added in v0.6.0

func ActionUpdatePtr() *LifecycleAction

type LifecycleVertex added in v0.6.0

type LifecycleVertex struct {
	Obj       client.Object
	ObjCopy   client.Object
	Immutable bool
	Orphan    bool
	Action    *LifecycleAction
}

LifecycleVertex describes expected object spec and how to reach it obj always represents the expected part: new object in Create/Update action and old object in Delete action oriObj is set in Update action all transformers doing their object manipulation works on obj.spec the root vertex(i.e. the cluster vertex) will be treated specially: as all its meta, spec and status can be updated in one reconciliation loop Update is ignored when immutable=true orphan object will be force deleted when action is DELETE

func FindRootVertex added in v0.6.0

func FindRootVertex(dag *graph.DAG) (*LifecycleVertex, error)

func LifecycleObjectCreate added in v0.6.0

func LifecycleObjectCreate(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex

func LifecycleObjectDelete added in v0.6.0

func LifecycleObjectDelete(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex

func LifecycleObjectNoop added in v0.6.0

func LifecycleObjectNoop(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex

func LifecycleObjectPatch added in v0.6.0

func LifecycleObjectPatch(dag *graph.DAG, obj client.Object, objCopy client.Object, parent *LifecycleVertex) *LifecycleVertex

func LifecycleObjectUpdate added in v0.6.0

func LifecycleObjectUpdate(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex

func (LifecycleVertex) String added in v0.6.0

func (v LifecycleVertex) String() string

Jump to

Keyboard shortcuts

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