Skip to content

Commit c56b9b3

Browse files
committed
update validation
1 parent 7a6c0b7 commit c56b9b3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apis/v1/jaeger_types.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,18 +721,27 @@ type JaegerDependenciesSpec struct {
721721

722722
// JaegerEsIndexCleanerSpec holds the options related to es-index-cleaner
723723
type 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

Comments
 (0)