core

package
v1.9.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpDefinitionRevision

func CleanUpDefinitionRevision(ctx context.Context, cli client.Client, def runtime.Object, revisionLimit int) error

CleanUpDefinitionRevision check all definitionRevisions, remove them if the number of them exceed the limit

func ConstructDefinitionRevisionName added in v1.1.0

func ConstructDefinitionRevisionName(definitionName, revision string) string

ConstructDefinitionRevisionName construct the name of DefinitionRevision.

func CreateDefinitionRevision added in v1.6.0

func CreateDefinitionRevision(ctx context.Context, cli client.Client, def util.ConditionedObject, defRev *v1beta1.DefinitionRevision) error

CreateDefinitionRevision create the revision of the definition

func DeepEqualDefRevision added in v1.1.0

func DeepEqualDefRevision(old, new *v1beta1.DefinitionRevision) bool

DeepEqualDefRevision deep compare the spec of definitionRevisions

func GatherRevisionInfo added in v1.1.0

func GatherRevisionInfo(def runtime.Object) (*v1beta1.DefinitionRevision, *common.Revision, error)

GatherRevisionInfo gather revision information from definition

func GenerateDefinitionRevision

func GenerateDefinitionRevision(ctx context.Context, cli client.Client, def runtime.Object) (*v1beta1.DefinitionRevision, bool, error)

GenerateDefinitionRevision will generate a definition revision the generated revision will be compare with the last revision to see if there's any difference.

func MatchControllerRequirement added in v1.6.0

func MatchControllerRequirement(definition util.ConditionedObject, controllerVersion string, ignoreDefNoCtrlReq bool) bool

MatchControllerRequirement check the requirement

func ReconcileDefinitionRevision added in v1.6.0

func ReconcileDefinitionRevision(ctx context.Context,
	cli client.Client,
	record event.Recorder,
	definition util.ConditionedObject,
	revisionLimit int,
	updateLatestRevision func(*common.Revision) error,
) (*v1beta1.DefinitionRevision, *ctrl.Result, error)

ReconcileDefinitionRevision generate the definition revision and update it.

Types

This section is empty.

Directories

Path Synopsis
Package components provides components related controllers.
Package components provides components related controllers.
policies
Package scopes provides scope related controllers.
Package scopes provides scope related controllers.
Package traits provides traits related controllers.
Package traits provides traits related controllers.
workflow

Jump to

Keyboard shortcuts

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