Documentation ¶
Index ¶
- Constants
- func FindAll[T interface{}](dag *graph.DAG) []graph.Vertex
- func FindAllNot[T interface{}](dag *graph.DAG) []graph.Vertex
- type LifecycleAction
- type LifecycleVertex
- func FindRootVertex(dag *graph.DAG) (*LifecycleVertex, error)
- func LifecycleObjectCreate(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex
- func LifecycleObjectDelete(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex
- func LifecycleObjectNoop(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex
- func LifecycleObjectPatch(dag *graph.DAG, obj client.Object, objCopy client.Object, ...) *LifecycleVertex
- func LifecycleObjectUpdate(dag *graph.DAG, obj client.Object, parent *LifecycleVertex) *LifecycleVertex
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 ¶
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
Click to show internal directories.
Click to hide internal directories.