Documentation ¶
Index ¶
- func CleanUpDefinitionRevision(ctx context.Context, cli client.Client, def runtime.Object, revisionLimit int) error
- func ConstructDefinitionRevisionName(definitionName, revision string) string
- func CreateDefinitionRevision(ctx context.Context, cli client.Client, def util.ConditionedObject, ...) error
- func DeepEqualDefRevision(old, new *v1beta1.DefinitionRevision) bool
- func GatherRevisionInfo(def runtime.Object) (*v1beta1.DefinitionRevision, *common.Revision, error)
- func GenerateDefinitionRevision(ctx context.Context, cli client.Client, def runtime.Object) (*v1beta1.DefinitionRevision, bool, error)
- func MatchControllerRequirement(definition util.ConditionedObject, controllerVersion string, ...) bool
- func ReconcileDefinitionRevision(ctx context.Context, cli client.Client, record event.Recorder, ...) (*v1beta1.DefinitionRevision, *ctrl.Result, error)
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
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
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
|
|