Add Event TTL flag

Enable cluster spec to support "event-ttl" flag from kube-apiserver to
change event retention time
This commit is contained in:
Gabriel Tiossi 2019-08-29 00:07:59 -03:00
parent 7406e0320e
commit 83dc5df52b
3 changed files with 9 additions and 0 deletions

View File

@ -450,6 +450,9 @@ type KubeAPIServerConfig struct {
// CPURequest, cpu request compute resource for api server. Defaults to "150m"
CPURequest string `json:"cpuRequest,omitempty"`
// Amount of time to retain Kubernetes events
EventTTL *metav1.Duration `json:"eventTTL,omitempty" flag:"event-ttl"`
}
// KubeControllerManagerConfig is the configuration for the controller

View File

@ -450,6 +450,9 @@ type KubeAPIServerConfig struct {
// CPURequest, cpu request compute resource for api server. Defaults to "150m"
CPURequest string `json:"cpuRequest,omitempty"`
// Amount of time to retain Kubernetes events
EventTTL *metav1.Duration `json:"eventTTL,omitempty" flag:"event-ttl"`
}
// KubeControllerManagerConfig is the configuration for the controller

View File

@ -450,6 +450,9 @@ type KubeAPIServerConfig struct {
// CPURequest, cpu request compute resource for api server. Defaults to "150m"
CPURequest string `json:"cpuRequest,omitempty"`
// Amount of time to retain Kubernetes events
EventTTL *metav1.Duration `json:"eventTTL,omitempty" flag:"event-ttl"`
}
// KubeControllerManagerConfig is the configuration for the controller