termination

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: 6 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) ([]result.RunResult, 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 []result.RunResult) 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