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
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.
Automatically detects and decompresses messages that were compressed with WriteCompressedMessage (identified by the "tknz:" prefix).
func WriteCompressedMessage ¶ added in v1.13.0
WriteCompressedMessage writes the results to the termination message path using flate compression and base64 encoding to fit more data in the 4KB Kubernetes termination message limit.
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
Click to show internal directories.
Click to hide internal directories.