annotation

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// Result identifier.
	Result = "results.tekton.dev/result"

	// Record identifier.
	Record = "results.tekton.dev/record"

	Log = "results.tekton.dev/log"

	// Integrators should add this annotation to objects in order to store
	// arbitrary keys/values into the Result.Annotations field.
	ResultAnnotations = "results.tekton.dev/resultAnnotations"

	// Integrators should add this annotation to objects in order to store
	// arbitrary keys/values into the Result.Summary.Annotations field.
	RecordSummaryAnnotations = "results.tekton.dev/recordSummaryAnnotations"

	// Annotation that signals to the controller that a given child object
	// (e.g. TaskRun owned by a PipelineRun) is done and up to date in the
	// API server and therefore, ready to be garbage collected.
	ChildReadyForDeletion = "results.tekton.dev/childReadyForDeletion"
)

Variables

This section is empty.

Functions

func IsPatched added in v0.6.0

func IsPatched(object metav1.Object, annotations ...Annotation) bool

IsPatched returns true if the object in question contains all relevant annotations or false otherwise.

func Patch added in v0.6.0

func Patch(object metav1.Object, annotations ...Annotation) ([]byte, error)

Patch creates a jsonpatch path used for adding result / record identifiers as well as other internal annotations to an object's annotations field.

Types

type Annotation added in v0.5.0

type Annotation struct {
	Name  string
	Value string
}

Jump to

Keyboard shortcuts

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