Merge pull request #25520 from Honny1/fix-hc-inf-log

Fix HealthCheck log destination, count, and size defaults
This commit is contained in:
openshift-merge-bot[bot]
2025-03-13 18:59:34 +00:00
committed by GitHub
18 changed files with 138 additions and 134 deletions

View File

@ -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