Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LogLevel string `split_words:"true" default:"info" description:"Log level for the application"`
LogFormat string `split_words:"true" default:"json" description:"Accepted values: text and json"`
Interval string `split_words:"true" default:"60s" description:"Deletion interval"`
CacheCleanupInterval string `split_words:"true" default:"30m" description:"Cache cleanup interval"`
CacheExpiration string `split_words:"true" default:"1.5h" description:"Default expiration time for cached data"`
MaxErrAllowed int `` /* 196-byte string literal not displayed */
Limit int `split_words:"true" default:"15" description:"Maximum number of Pods to be deleted per each POD_CLEANUP_INTERVAL tick"`
Kubernetes KubernetesConfig
}
func (Config) GetCacheCleanupInterval ¶
func (Config) GetRequestLimit ¶
type KubernetesConfig ¶
type KubernetesConfig struct {
RequestLimit int `split_words:"true" default:"500" description:"Limit the number of pods to retrieve per API request when getting existing pod"`
RequestTimeout string `split_words:"true" default:"30s" description:"The maximum amount of time a Kubernetes API request can take"`
Namespaces []string `split_words:"true" default:"default" description:"List of namespaces to search for Kubernetes pods"`
Annotation string `split_words:"true" default:"pod-cleanup.gitlab.com/ttl" description:"List of annotations to consider for the ttl setting"`
}
Click to show internal directories.
Click to hide internal directories.