termination

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 19

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 added in v0.10.0

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 added in v0.13.0

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 added in v0.13.0

func (e MessageLengthError) Error() string

Jump to

Keyboard shortcuts

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