mirror of
https://github.com/containers/podman.git
synced 2025-08-26 03:01:31 +08:00
Merge pull request #25520 from Honny1/fix-hc-inf-log
Fix HealthCheck log destination, count, and size defaults
This commit is contained in:
@ -604,14 +604,17 @@ type ContainerHealthCheckConfig struct {
|
||||
// Requires that HealthConfig be set.
|
||||
// Optional.
|
||||
StartupHealthConfig *define.StartupHealthCheck `json:"startupHealthConfig,omitempty"`
|
||||
// HealthLogDestination defines the destination where the log is stored
|
||||
HealthLogDestination string `json:"healthLogDestination,omitempty"`
|
||||
// HealthLogDestination defines the destination where the log is stored.
|
||||
// TODO (6.0): In next major release convert it to pointer and use omitempty
|
||||
HealthLogDestination string `json:"healthLogDestination"`
|
||||
// HealthMaxLogCount is maximum number of attempts in the HealthCheck log file.
|
||||
// ('0' value means an infinite number of attempts in the log file)
|
||||
HealthMaxLogCount uint `json:"healthMaxLogCount,omitempty"`
|
||||
// ('0' value means an infinite number of attempts in the log file).
|
||||
// TODO (6.0): In next major release convert it to pointer and use omitempty
|
||||
HealthMaxLogCount uint `json:"healthMaxLogCount"`
|
||||
// HealthMaxLogSize is the maximum length in characters of stored HealthCheck log
|
||||
// ("0" value means an infinite log length)
|
||||
HealthMaxLogSize uint `json:"healthMaxLogSize,omitempty"`
|
||||
// ("0" value means an infinite log length).
|
||||
// TODO (6.0): In next major release convert it to pointer and use omitempty
|
||||
HealthMaxLogSize uint `json:"healthMaxLogSize"`
|
||||
}
|
||||
|
||||
// SpecGenerator creates an OCI spec and Libpod configuration options to create
|
||||
|
Reference in New Issue
Block a user