checksum

package
v0.0.0-...-4fc8c9b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SignatureAnnotation is the key of signature in annotation map
	SignatureAnnotation = "tekton.dev/signature"
)

Variables

This section is empty.

Functions

func ComputeSha256Checksum

func ComputeSha256Checksum(obj interface{}) ([]byte, error)

ComputeSha256Checksum computes the sha256 checksum of the tekton object.

func PrepareObjectMeta

func PrepareObjectMeta(in metav1.Object) metav1.ObjectMeta

PrepareObjectMeta will remove annotations not configured from user side -- "kubectl-client-side-apply" and "kubectl.kubernetes.io/last-applied-configuration" (added when an object is created with `kubectl apply`) to avoid verification failure and extract the signature. Returns a copy of the input object metadata with the annotations removed and the object's signature, if it is present in the metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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