termination

package
v0.0.0-...-b563e91 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxContainerTerminationMessageLength is the upper bound any one container may write to
	// its termination message path. Contents above this length will cause a failure.
	MaxContainerTerminationMessageLength = 1024 * 4
)

Variables

This section is empty.

Functions

func ParseMessage

func ParseMessage(logger *zap.SugaredLogger, msg string) ([]v1beta1.PipelineResourceResult, error)

ParseMessage parses a termination message as results.

If more than one item has the same key, only the latest is returned. Items are sorted by their key.

func WriteMessage

func WriteMessage(path string, pro []v1beta1.PipelineResourceResult) error

WriteMessage writes the results to the termination message path.

Types

type MessageLengthError

type MessageLengthError string

MessageLengthError indicate the length of termination message of container is beyond 4096 which is the max length read by kubenates

func (MessageLengthError) Error

func (e MessageLengthError) Error() string

Jump to

Keyboard shortcuts

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