@@ -721,18 +721,27 @@ type JaegerDependenciesSpec struct {
721721
722722// JaegerEsIndexCleanerSpec holds the options related to es-index-cleaner
723723type JaegerEsIndexCleanerSpec struct {
724+ // Whether to switch on the index cleaning when using Elasticsearch.
725+ // Set this to true to enable the index cleaning feature.
724726 // +optional
725727 Enabled * bool `json:"enabled,omitempty"`
726728
729+ // Specify number of days for the data to be kept in Elasticsearch.
727730 // +optional
728731 NumberOfDays * int `json:"numberOfDays,omitempty"`
729732
733+ // Schedule the cron job for cleaning Elasticsearch indices.
734+ // This field must be cron expression.
735+ // +kubebuilder:validation:MinLength:=1
730736 // +optional
731737 Schedule string `json:"schedule,omitempty"`
732738
739+ // Specify how many successful jobs to be kept in the history.
733740 // +optional
734741 SuccessfulJobsHistoryLimit * int32 `json:"successfulJobsHistoryLimit,omitempty"`
735742
743+ // Set up the custom image for the jaeger-es-index-cleaner.
744+ // +kubebuilder:validation:MinLength:=1
736745 // +optional
737746 Image string `json:"image,omitempty"`
738747
@@ -746,6 +755,8 @@ type JaegerEsIndexCleanerSpec struct {
746755 // +optional
747756 JaegerCommonSpec `json:",inline,omitempty"`
748757
758+ // Priority class name for the pod.
759+ // +kubebuilder:validation:MinLength:=1
749760 // +optional
750761 PriorityClassName string `json:"priorityClassName,omitempty"`
751762}
0 commit comments