@@ -20,8 +20,6 @@ import (
2020 corev1 "k8s.io/api/core/v1"
2121 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222 "k8s.io/apimachinery/pkg/runtime"
23- "k8s.io/apimachinery/pkg/runtime/schema"
24- "k8s.io/apimachinery/pkg/types"
2523)
2624
2725// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
@@ -33,12 +31,12 @@ const (
3331 IngestorClusterPausedAnnotation = "ingestorcluster.enterprise.splunk.com/paused"
3432)
3533
36- // IngestorClusterSpec defines the spec of Ingestor Cluster pods
34+ // IngestorClusterSpec defines the spec of Ingestor Cluster
3735type IngestorClusterSpec struct {
38- // Common SPlunk spec
36+ // Common Splunk spec
3937 CommonSplunkSpec `json:",inline"`
4038
41- // Number of ingestion pods
39+ // Number of ingestor pods
4240 Replicas int32 `json:"replicas"`
4341
4442 // Splunk Enterprise app repository that specifies remote app location and scope for Splunk app management
@@ -47,6 +45,9 @@ type IngestorClusterSpec struct {
4745 // Push Bus spec
4846 PushBus PushBusSpec `json:"pushBus"`
4947
48+ // Pipeline configuration
49+ PipelineConfig PipelineConfigSpec `json:"pipelineConfig"`
50+
5051 // Service account name
5152 ServiceAccountName string `json:"serviceAccountName"`
5253}
@@ -57,8 +58,6 @@ type PushBusSpec struct {
5758 Type string `json:"type"`
5859
5960 SQS SQSSpec `json:"sqs"`
60-
61- PipelineConfig PipelineConfigSpec `json:"pipelineConfig"`
6261}
6362
6463type SQSSpec struct {
@@ -67,6 +66,18 @@ type SQSSpec struct {
6766 AuthRegion string `json:"authRegion"`
6867
6968 Endpoint string `json:"endpoint"`
69+
70+ LargeMessageStoreEndpoint string `json:"largeMessageStoreEndpoint"`
71+
72+ LargeMessageStorePath string `json:"largeMessageStorePath"`
73+
74+ DeadLetterQueueName string `json:"deadLetterQueueName"`
75+
76+ MaxRetriesPerPart int `json:"maxRetriesPerPart"`
77+
78+ RetryPolicy string `json:"retryPolicy"`
79+
80+ SendInterval string `json:"sendInterval"`
7081}
7182
7283type PipelineConfigSpec struct {
@@ -83,15 +94,15 @@ type PipelineConfigSpec struct {
8394 IndexerPipe bool `json:"indexerPipe"`
8495}
8596
86- // IngestorClusterStatus defines the observed state of Ingestor Cluster pods
97+ // IngestorClusterStatus defines the observed state of Ingestor Cluster
8798type IngestorClusterStatus struct {
88- // Phase of the ingestion pods
99+ // Phase of the ingestor pods
89100 Phase Phase `json:"phase"`
90101
91- // Number of desired ingestion pods
102+ // Number of desired ingestor pods
92103 Replicas int32 `json:"replicas"`
93104
94- // Number of ready ingestion pods
105+ // Number of ready ingestor pods
95106 ReadyReplicas int32 `json:"readyReplicas"`
96107
97108 // Selector for pods used by HorizontalPodAutoscaler
@@ -134,213 +145,12 @@ type IngestorCluster struct {
134145 Status IngestorClusterStatus `json:"status,omitempty,omitzero"`
135146}
136147
137- // DeepCopyObject implements common.MetaObject.
138- func (ic * IngestorCluster ) DeepCopyObject () runtime.Object {
139- panic ("unimplemented" )
140- }
141-
142- // GetAnnotations implements common.MetaObject.
143- // Subtle: this method shadows the method (ObjectMeta).GetAnnotations of IngestorCluster.ObjectMeta.
144- func (ic * IngestorCluster ) GetAnnotations () map [string ]string {
145- panic ("unimplemented" )
146- }
147-
148- // GetCreationTimestamp implements common.MetaObject.
149- // Subtle: this method shadows the method (ObjectMeta).GetCreationTimestamp of IngestorCluster.ObjectMeta.
150- func (ic * IngestorCluster ) GetCreationTimestamp () metav1.Time {
151- panic ("unimplemented" )
152- }
153-
154- // GetDeletionGracePeriodSeconds implements common.MetaObject.
155- // Subtle: this method shadows the method (ObjectMeta).GetDeletionGracePeriodSeconds of IngestorCluster.ObjectMeta.
156- func (ic * IngestorCluster ) GetDeletionGracePeriodSeconds () * int64 {
157- panic ("unimplemented" )
158- }
159-
160- // GetDeletionTimestamp implements common.MetaObject.
161- // Subtle: this method shadows the method (ObjectMeta).GetDeletionTimestamp of IngestorCluster.ObjectMeta.
162- func (ic * IngestorCluster ) GetDeletionTimestamp () * metav1.Time {
163- panic ("unimplemented" )
164- }
165-
166- // GetFinalizers implements common.MetaObject.
167- // Subtle: this method shadows the method (ObjectMeta).GetFinalizers of IngestorCluster.ObjectMeta.
168- func (ic * IngestorCluster ) GetFinalizers () []string {
169- panic ("unimplemented" )
170- }
171-
172- // GetGenerateName implements common.MetaObject.
173- // Subtle: this method shadows the method (ObjectMeta).GetGenerateName of IngestorCluster.ObjectMeta.
174- func (ic * IngestorCluster ) GetGenerateName () string {
175- panic ("unimplemented" )
176- }
177-
178- // GetGeneration implements common.MetaObject.
179- // Subtle: this method shadows the method (ObjectMeta).GetGeneration of IngestorCluster.ObjectMeta.
180- func (ic * IngestorCluster ) GetGeneration () int64 {
181- panic ("unimplemented" )
182- }
183-
184- // GetLabels implements common.MetaObject.
185- // Subtle: this method shadows the method (ObjectMeta).GetLabels of IngestorCluster.ObjectMeta.
186- func (ic * IngestorCluster ) GetLabels () map [string ]string {
187- panic ("unimplemented" )
188- }
189-
190- // GetManagedFields implements common.MetaObject.
191- // Subtle: this method shadows the method (ObjectMeta).GetManagedFields of IngestorCluster.ObjectMeta.
192- func (ic * IngestorCluster ) GetManagedFields () []metav1.ManagedFieldsEntry {
193- panic ("unimplemented" )
194- }
195-
196- // GetName implements common.MetaObject.
197- // Subtle: this method shadows the method (ObjectMeta).GetName of IngestorCluster.ObjectMeta.
198- func (ic * IngestorCluster ) GetName () string {
199- panic ("unimplemented" )
200- }
201-
202- // GetNamespace implements common.MetaObject.
203- // Subtle: this method shadows the method (ObjectMeta).GetNamespace of IngestorCluster.ObjectMeta.
204- func (ic * IngestorCluster ) GetNamespace () string {
205- panic ("unimplemented" )
206- }
207-
208- // GetObjectKind implements common.MetaObject.
209- // Subtle: this method shadows the method (TypeMeta).GetObjectKind of IngestorCluster.TypeMeta.
210- func (ic * IngestorCluster ) GetObjectKind () schema.ObjectKind {
211- panic ("unimplemented" )
212- }
213-
214- // GetObjectMeta implements common.MetaObject.
215- // Subtle: this method shadows the method (ObjectMeta).GetObjectMeta of IngestorCluster.ObjectMeta.
216- func (ic * IngestorCluster ) GetObjectMeta () metav1.Object {
217- panic ("unimplemented" )
218- }
219-
220- // GetOwnerReferences implements common.MetaObject.
221- // Subtle: this method shadows the method (ObjectMeta).GetOwnerReferences of IngestorCluster.ObjectMeta.
222- func (ic * IngestorCluster ) GetOwnerReferences () []metav1.OwnerReference {
223- panic ("unimplemented" )
224- }
225-
226- // GetResourceVersion implements common.MetaObject.
227- // Subtle: this method shadows the method (ObjectMeta).GetResourceVersion of IngestorCluster.ObjectMeta.
228- func (ic * IngestorCluster ) GetResourceVersion () string {
229- panic ("unimplemented" )
230- }
231-
232- // GetSelfLink implements common.MetaObject.
233- // Subtle: this method shadows the method (ObjectMeta).GetSelfLink of IngestorCluster.ObjectMeta.
234- func (ic * IngestorCluster ) GetSelfLink () string {
235- panic ("unimplemented" )
236- }
237-
238- // GetUID implements common.MetaObject.
239- // Subtle: this method shadows the method (ObjectMeta).GetUID of IngestorCluster.ObjectMeta.
240- func (ic * IngestorCluster ) GetUID () types.UID {
241- panic ("unimplemented" )
242- }
243-
244- // GroupVersionKind implements common.MetaObject.
245- // Subtle: this method shadows the method (TypeMeta).GroupVersionKind of IngestorCluster.TypeMeta.
246- func (ic * IngestorCluster ) GroupVersionKind () schema.GroupVersionKind {
247- panic ("unimplemented" )
248- }
249-
250- // SetAnnotations implements common.MetaObject.
251- // Subtle: this method shadows the method (ObjectMeta).SetAnnotations of IngestorCluster.ObjectMeta.
252- func (ic * IngestorCluster ) SetAnnotations (annotations map [string ]string ) {
253- panic ("unimplemented" )
254- }
255-
256- // SetCreationTimestamp implements common.MetaObject.
257- // Subtle: this method shadows the method (ObjectMeta).SetCreationTimestamp of IngestorCluster.ObjectMeta.
258- func (ic * IngestorCluster ) SetCreationTimestamp (timestamp metav1.Time ) {
259- panic ("unimplemented" )
260- }
261-
262- // SetDeletionGracePeriodSeconds implements common.MetaObject.
263- // Subtle: this method shadows the method (ObjectMeta).SetDeletionGracePeriodSeconds of IngestorCluster.ObjectMeta.
264- func (ic * IngestorCluster ) SetDeletionGracePeriodSeconds (* int64 ) {
265- panic ("unimplemented" )
266- }
267-
268- // SetDeletionTimestamp implements common.MetaObject.
269- // Subtle: this method shadows the method (ObjectMeta).SetDeletionTimestamp of IngestorCluster.ObjectMeta.
270- func (ic * IngestorCluster ) SetDeletionTimestamp (timestamp * metav1.Time ) {
271- panic ("unimplemented" )
272- }
273-
274- // SetFinalizers implements common.MetaObject.
275- // Subtle: this method shadows the method (ObjectMeta).SetFinalizers of IngestorCluster.ObjectMeta.
276- func (ic * IngestorCluster ) SetFinalizers (finalizers []string ) {
277- panic ("unimplemented" )
278- }
279-
280- // SetGenerateName implements common.MetaObject.
281- // Subtle: this method shadows the method (ObjectMeta).SetGenerateName of IngestorCluster.ObjectMeta.
282- func (ic * IngestorCluster ) SetGenerateName (name string ) {
283- panic ("unimplemented" )
284- }
285-
286- // SetGeneration implements common.MetaObject.
287- // Subtle: this method shadows the method (ObjectMeta).SetGeneration of IngestorCluster.ObjectMeta.
288- func (ic * IngestorCluster ) SetGeneration (generation int64 ) {
289- panic ("unimplemented" )
290- }
291-
292- // SetGroupVersionKind implements common.MetaObject.
293- // Subtle: this method shadows the method (TypeMeta).SetGroupVersionKind of IngestorCluster.TypeMeta.
294- func (ic * IngestorCluster ) SetGroupVersionKind (kind schema.GroupVersionKind ) {
295- panic ("unimplemented" )
296- }
297-
298- // SetLabels implements common.MetaObject.
299- // Subtle: this method shadows the method (ObjectMeta).SetLabels of IngestorCluster.ObjectMeta.
300- func (ic * IngestorCluster ) SetLabels (labels map [string ]string ) {
301- panic ("unimplemented" )
302- }
303-
304- // SetManagedFields implements common.MetaObject.
305- // Subtle: this method shadows the method (ObjectMeta).SetManagedFields of IngestorCluster.ObjectMeta.
306- func (ic * IngestorCluster ) SetManagedFields (managedFields []metav1.ManagedFieldsEntry ) {
307- panic ("unimplemented" )
308- }
309-
310- // SetName implements common.MetaObject.
311- // Subtle: this method shadows the method (ObjectMeta).SetName of IngestorCluster.ObjectMeta.
312- func (ic * IngestorCluster ) SetName (name string ) {
313- panic ("unimplemented" )
314- }
315-
316- // SetNamespace implements common.MetaObject.
317- // Subtle: this method shadows the method (ObjectMeta).SetNamespace of IngestorCluster.ObjectMeta.
318- func (ic * IngestorCluster ) SetNamespace (namespace string ) {
319- panic ("unimplemented" )
320- }
321-
322- // SetOwnerReferences implements common.MetaObject.
323- // Subtle: this method shadows the method (ObjectMeta).SetOwnerReferences of IngestorCluster.ObjectMeta.
324- func (ic * IngestorCluster ) SetOwnerReferences ([]metav1.OwnerReference ) {
325- panic ("unimplemented" )
326- }
327-
328- // SetResourceVersion implements common.MetaObject.
329- // Subtle: this method shadows the method (ObjectMeta).SetResourceVersion of IngestorCluster.ObjectMeta.
330- func (ic * IngestorCluster ) SetResourceVersion (version string ) {
331- panic ("unimplemented" )
332- }
333-
334- // SetSelfLink implements common.MetaObject.
335- // Subtle: this method shadows the method (ObjectMeta).SetSelfLink of IngestorCluster.ObjectMeta.
336- func (ic * IngestorCluster ) SetSelfLink (selfLink string ) {
337- panic ("unimplemented" )
338- }
339-
340- // SetUID implements common.MetaObject.
341- // Subtle: this method shadows the method (ObjectMeta).SetUID of IngestorCluster.ObjectMeta.
342- func (ic * IngestorCluster ) SetUID (uid types.UID ) {
343- panic ("unimplemented" )
148+ // DeepCopyObject implements runtime.Object
149+ func (in * IngestorCluster ) DeepCopyObject () runtime.Object {
150+ if c := in .DeepCopy (); c != nil {
151+ return c
152+ }
153+ return nil
344154}
345155
346156// +kubebuilder:object:root=true
0 commit comments