core

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 16 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 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.

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