6161 systemDefaultTerminationGracePeriodSeconds * int64 = ptr.To [int64 ](60 )
6262 systemDefaultSearchServer SearchServerSpec = SearchServerSpec {
6363 AddressSpec : AddressSpec {
64- Host : ptr .To ("system-searched " ),
64+ Host : ptr .To ("system-searchd " ),
6565 Port : ptr.To [int32 ](9306 ),
6666 },
6767 BatchSize : ptr.To [int32 ](100 ),
@@ -165,16 +165,16 @@ var (
165165 MaxThreads : ptr.To [int32 ](15 ),
166166 }
167167
168- // Searched
168+ // Searchd
169169 systemDefaultSearchdEnabled bool = true
170170 systemDefaultSearchdImage defaultImageSpec = defaultImageSpec {
171- Name : ptr .To ("quay.io/3scale/searched " ),
171+ Name : ptr .To ("quay.io/3scale/searchd " ),
172172 Tag : ptr .To ("latest" ),
173173 PullPolicy : (* corev1 .PullPolicy )(ptr .To (string (corev1 .PullIfNotPresent ))),
174174 }
175- systemDefaultSearchdServiceName string = "system-searched "
175+ systemDefaultSearchdServiceName string = "system-searchd "
176176 systemDefaultSearchdPort int32 = 9306
177- systemDefaultSearchdDBPath string = "/var/lib/searched "
177+ systemDefaultSearchdDBPath string = "/var/lib/searchd "
178178 systemDefaultSearchdDatabaseStorageSize string = "30Gi"
179179 systemDefaultSearchdResources defaultResourceRequirementsSpec = defaultResourceRequirementsSpec {
180180 Requests : corev1.ResourceList {
@@ -238,15 +238,15 @@ var (
238238 },
239239 },
240240 {
241- Name : ptr .To ("system-searched -reindex" ),
242- Description : ptr .To ("Runs the Searched Rendexation task" ),
241+ Name : ptr .To ("system-searchd -reindex" ),
242+ Description : ptr .To ("Runs the Searchd Rendexation task" ),
243243 Config : & SystemTektonTaskConfig {
244244 Command : []string {"container-entrypoint" },
245245 Args : []string {
246246 "bundle" ,
247247 "exec" ,
248248 "rake" ,
249- "searched :optimal_index" ,
249+ "searchd :optimal_index" ,
250250 },
251251 ExtraEnv : []corev1.EnvVar {
252252 {
@@ -294,10 +294,10 @@ type SystemSpec struct {
294294 // +operator-sdk:csv:customresourcedefinitions:type=spec
295295 // +optional
296296 SidekiqLow * SystemSidekiqSpec `json:"sidekiqLow,omitempty"`
297- // Searched specific configuration options
297+ // Searchd specific configuration options
298298 // +operator-sdk:csv:customresourcedefinitions:type=spec
299299 // +optional
300- Searched * SystemSearchdSpec `json:"searched ,omitempty"`
300+ Searchd * SystemSearchdSpec `json:"searchd ,omitempty"`
301301 // Console specific configuration options
302302 // +operator-sdk:csv:customresourcedefinitions:type=spec
303303 // +optional
@@ -346,11 +346,11 @@ func (spec *SystemSpec) Default() {
346346
347347 spec .SidekiqLow .Default (Low )
348348
349- if spec .Searched == nil {
350- spec .Searched = & SystemSearchdSpec {}
349+ if spec .Searchd == nil {
350+ spec .Searchd = & SystemSearchdSpec {}
351351 }
352352
353- spec .Searched .Default ()
353+ spec .Searchd .Default ()
354354
355355 if spec .Console == nil {
356356 spec .Console = & SystemRailsConsoleSpec {}
@@ -894,44 +894,44 @@ func (spec *SystemSidekiqSpec) Default(sidekiqType systemSidekiqType) {
894894
895895// SystemSearchdSpec configures the App component of System
896896type SystemSearchdSpec struct {
897- // Deploy searched instance
897+ // Deploy searchd instance
898898 // +operator-sdk:csv:customresourcedefinitions:type=spec
899899 // +optional
900900 Enabled * bool `json:"enabled,omitempty"`
901- // Image specification for the Searched component.
901+ // Image specification for the Searchd component.
902902 // Defaults to system image if not defined.
903903 // +operator-sdk:csv:customresourcedefinitions:type=spec
904904 // +optional
905905 Image * ImageSpec `json:"image,omitempty"`
906- // Configuration options for System's Searched
906+ // Configuration options for System's Searchd
907907 // +operator-sdk:csv:customresourcedefinitions:type=spec
908908 // +optional
909909 Config * SearchdConfig `json:"config,omitempty"`
910- // Resource requirements for the Searched component
910+ // Resource requirements for the Searchd component
911911 // +operator-sdk:csv:customresourcedefinitions:type=spec
912912 // +optional
913913 Resources * ResourceRequirementsSpec `json:"resources,omitempty"`
914- // Liveness probe for the Searched component
914+ // Liveness probe for the Searchd component
915915 // +operator-sdk:csv:customresourcedefinitions:type=spec
916916 // +optional
917917 LivenessProbe * ProbeSpec `json:"livenessProbe,omitempty"`
918- // Readiness probe for the Searched component
918+ // Readiness probe for the Searchd component
919919 // +operator-sdk:csv:customresourcedefinitions:type=spec
920920 // +optional
921921 ReadinessProbe * ProbeSpec `json:"readinessProbe,omitempty"`
922- // Describes node affinity scheduling rules for the Searched pod
922+ // Describes node affinity scheduling rules for the Searchd pod
923923 // +optional
924924 NodeAffinity * corev1.NodeAffinity `json:"nodeAffinity,omitempty" protobuf:"bytes,1,opt,name=nodeAffinity"`
925- // If specified, the Searched pod's tolerations.
925+ // If specified, the Searchd pod's tolerations.
926926 // +optional
927927 Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"`
928- // Configures the TerminationGracePeriodSeconds for Searched
928+ // Configures the TerminationGracePeriodSeconds for Searchd
929929 // +operator-sdk:csv:customresourcedefinitions:type=spec
930930 // +optional
931931 TerminationGracePeriodSeconds * int64 `json:"terminationGracePeriodSeconds,omitempty"`
932932}
933933
934- // Default implements defaulting for the system searched component
934+ // Default implements defaulting for the system searchd component
935935func (spec * SystemSearchdSpec ) Default () {
936936 spec .Enabled = boolOrDefault (spec .Enabled , ptr .To (systemDefaultSearchdEnabled ))
937937 spec .Image = InitializeImageSpec (spec .Image , systemDefaultSearchdImage )
@@ -949,25 +949,25 @@ func (spec *SystemSearchdSpec) Default() {
949949 )
950950}
951951
952- // SearchdConfig has configuration options for System's searched
952+ // SearchdConfig has configuration options for System's searchd
953953type SearchdConfig struct {
954- // Allows setting the service name for Searched
954+ // Allows setting the service name for Searchd
955955 // +operator-sdk:csv:customresourcedefinitions:type=spec
956956 // +optional
957957 ServiceName * string `json:"serviceName,omitempty"`
958- // The TCP port Searched will run its daemon on
958+ // The TCP port Searchd will run its daemon on
959959 // +operator-sdk:csv:customresourcedefinitions:type=spec
960960 // +optional
961961 Port * int32 `json:"port,omitempty"`
962- // Searched database path
962+ // Searchd database path
963963 // +operator-sdk:csv:customresourcedefinitions:type=spec
964964 // +optional
965965 DatabasePath * string `json:"databasePath,omitempty"`
966- // Searched database storage size
966+ // Searchd database storage size
967967 // +operator-sdk:csv:customresourcedefinitions:type=spec
968968 // +optional
969969 DatabaseStorageSize * resource.Quantity `json:"databaseStorageSize,omitempty"`
970- // Searched database storage type
970+ // Searchd database storage type
971971 // +operator-sdk:csv:customresourcedefinitions:type=spec
972972 // +optional
973973 DatabaseStorageClass * string `json:"databaseStorageClass,omitempty"`
0 commit comments