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
Click to show internal directories.
Click to hide internal directories.