Skip to content

Commit ca230a9

Browse files
committed
CSPL-3551 Enhancing Ingestor inputs
1 parent ce7ca88 commit ca230a9

File tree

8 files changed

+140
-216
lines changed

8 files changed

+140
-216
lines changed

api/v4/ingestorcluster_types.go

Lines changed: 21 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -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!
@@ -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

6463
type 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

7283
type PipelineConfigSpec struct {
@@ -134,195 +145,12 @@ type IngestorCluster struct {
134145
Status IngestorClusterStatus `json:"status,omitempty,omitzero"`
135146
}
136147

137-
// DeepCopyObject implements client.Object.
138-
func (ic *IngestorCluster) DeepCopyObject() runtime.Object {
139-
panic("unimplemented")
140-
}
141-
142-
// GetAnnotations implements client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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 client.Object.
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-
// GetOwnerReferences implements client.Object.
215-
// Subtle: this method shadows the method (ObjectMeta).GetOwnerReferences of IngestorCluster.ObjectMeta.
216-
func (ic *IngestorCluster) GetOwnerReferences() []metav1.OwnerReference {
217-
panic("unimplemented")
218-
}
219-
220-
// GetResourceVersion implements client.Object.
221-
// Subtle: this method shadows the method (ObjectMeta).GetResourceVersion of IngestorCluster.ObjectMeta.
222-
func (ic *IngestorCluster) GetResourceVersion() string {
223-
panic("unimplemented")
224-
}
225-
226-
// GetSelfLink implements client.Object.
227-
// Subtle: this method shadows the method (ObjectMeta).GetSelfLink of IngestorCluster.ObjectMeta.
228-
func (ic *IngestorCluster) GetSelfLink() string {
229-
panic("unimplemented")
230-
}
231-
232-
// GetUID implements client.Object.
233-
// Subtle: this method shadows the method (ObjectMeta).GetUID of IngestorCluster.ObjectMeta.
234-
func (ic *IngestorCluster) GetUID() types.UID {
235-
panic("unimplemented")
236-
}
237-
238-
// SetAnnotations implements client.Object.
239-
// Subtle: this method shadows the method (ObjectMeta).SetAnnotations of IngestorCluster.ObjectMeta.
240-
func (ic *IngestorCluster) SetAnnotations(annotations map[string]string) {
241-
panic("unimplemented")
242-
}
243-
244-
// SetCreationTimestamp implements client.Object.
245-
// Subtle: this method shadows the method (ObjectMeta).SetCreationTimestamp of IngestorCluster.ObjectMeta.
246-
func (ic *IngestorCluster) SetCreationTimestamp(timestamp metav1.Time) {
247-
panic("unimplemented")
248-
}
249-
250-
// SetDeletionGracePeriodSeconds implements client.Object.
251-
// Subtle: this method shadows the method (ObjectMeta).SetDeletionGracePeriodSeconds of IngestorCluster.ObjectMeta.
252-
func (ic *IngestorCluster) SetDeletionGracePeriodSeconds(*int64) {
253-
panic("unimplemented")
254-
}
255-
256-
// SetDeletionTimestamp implements client.Object.
257-
// Subtle: this method shadows the method (ObjectMeta).SetDeletionTimestamp of IngestorCluster.ObjectMeta.
258-
func (ic *IngestorCluster) SetDeletionTimestamp(timestamp *metav1.Time) {
259-
panic("unimplemented")
260-
}
261-
262-
// SetFinalizers implements client.Object.
263-
// Subtle: this method shadows the method (ObjectMeta).SetFinalizers of IngestorCluster.ObjectMeta.
264-
func (ic *IngestorCluster) SetFinalizers(finalizers []string) {
265-
panic("unimplemented")
266-
}
267-
268-
// SetGenerateName implements client.Object.
269-
// Subtle: this method shadows the method (ObjectMeta).SetGenerateName of IngestorCluster.ObjectMeta.
270-
func (ic *IngestorCluster) SetGenerateName(name string) {
271-
panic("unimplemented")
272-
}
273-
274-
// SetGeneration implements client.Object.
275-
// Subtle: this method shadows the method (ObjectMeta).SetGeneration of IngestorCluster.ObjectMeta.
276-
func (ic *IngestorCluster) SetGeneration(generation int64) {
277-
panic("unimplemented")
278-
}
279-
280-
// SetLabels implements client.Object.
281-
// Subtle: this method shadows the method (ObjectMeta).SetLabels of IngestorCluster.ObjectMeta.
282-
func (ic *IngestorCluster) SetLabels(labels map[string]string) {
283-
panic("unimplemented")
284-
}
285-
286-
// SetManagedFields implements client.Object.
287-
// Subtle: this method shadows the method (ObjectMeta).SetManagedFields of IngestorCluster.ObjectMeta.
288-
func (ic *IngestorCluster) SetManagedFields(managedFields []metav1.ManagedFieldsEntry) {
289-
panic("unimplemented")
290-
}
291-
292-
// SetName implements client.Object.
293-
// Subtle: this method shadows the method (ObjectMeta).SetName of IngestorCluster.ObjectMeta.
294-
func (ic *IngestorCluster) SetName(name string) {
295-
panic("unimplemented")
296-
}
297-
298-
// SetNamespace implements client.Object.
299-
// Subtle: this method shadows the method (ObjectMeta).SetNamespace of IngestorCluster.ObjectMeta.
300-
func (ic *IngestorCluster) SetNamespace(namespace string) {
301-
panic("unimplemented")
302-
}
303-
304-
// SetOwnerReferences implements client.Object.
305-
// Subtle: this method shadows the method (ObjectMeta).SetOwnerReferences of IngestorCluster.ObjectMeta.
306-
func (ic *IngestorCluster) SetOwnerReferences([]metav1.OwnerReference) {
307-
panic("unimplemented")
308-
}
309-
310-
// SetResourceVersion implements client.Object.
311-
// Subtle: this method shadows the method (ObjectMeta).SetResourceVersion of IngestorCluster.ObjectMeta.
312-
func (ic *IngestorCluster) SetResourceVersion(version string) {
313-
panic("unimplemented")
314-
}
315-
316-
// SetSelfLink implements client.Object.
317-
// Subtle: this method shadows the method (ObjectMeta).SetSelfLink of IngestorCluster.ObjectMeta.
318-
func (ic *IngestorCluster) SetSelfLink(selfLink string) {
319-
panic("unimplemented")
320-
}
321-
322-
// SetUID implements client.Object.
323-
// Subtle: this method shadows the method (ObjectMeta).SetUID of IngestorCluster.ObjectMeta.
324-
func (ic *IngestorCluster) SetUID(uid types.UID) {
325-
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
326154
}
327155

328156
// +kubebuilder:object:root=true

api/v4/zz_generated.deepcopy.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/enterprise.splunk.com_ingestorclusters.yaml

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ spec:
6161
type: object
6262
spec:
6363
description: IngestorClusterSpec defines the spec of Ingestor Cluster
64-
pods
6564
properties:
6665
Mock:
6766
description: Mock to differentiate between UTs and actual reconcile
@@ -1581,32 +1580,45 @@ spec:
15811580
type: string
15821581
type: object
15831582
x-kubernetes-map-type: atomic
1583+
pipelineConfig:
1584+
description: Pipeline configuration
1585+
properties:
1586+
indexerPipe:
1587+
type: boolean
1588+
remoteQueueOutput:
1589+
type: boolean
1590+
remoteQueueRuleset:
1591+
type: boolean
1592+
remoteQueueTyping:
1593+
type: boolean
1594+
ruleSet:
1595+
type: boolean
1596+
typing:
1597+
type: boolean
1598+
type: object
15841599
pushBus:
15851600
description: Push Bus spec
15861601
properties:
1587-
pipelineConfig:
1588-
properties:
1589-
indexerPipe:
1590-
type: boolean
1591-
remoteQueueOutput:
1592-
type: boolean
1593-
remoteQueueRuleset:
1594-
type: boolean
1595-
remoteQueueTyping:
1596-
type: boolean
1597-
ruleSet:
1598-
type: boolean
1599-
typing:
1600-
type: boolean
1601-
type: object
16021602
sqs:
16031603
properties:
16041604
authRegion:
16051605
type: string
1606+
deadLetterQueueName:
1607+
type: string
16061608
endpoint:
16071609
type: string
1610+
largeMessageStoreEndpoint:
1611+
type: string
1612+
largeMessageStorePath:
1613+
type: string
1614+
maxRetriesPerPart:
1615+
type: integer
16081616
queueName:
16091617
type: string
1618+
retryPolicy:
1619+
type: string
1620+
sendInterval:
1621+
type: string
16101622
type: object
16111623
type:
16121624
type: string
@@ -1644,7 +1656,7 @@ spec:
16441656
type: integer
16451657
type: object
16461658
replicas:
1647-
description: Number of ingestion pods
1659+
description: Number of ingestor pods
16481660
format: int32
16491661
type: integer
16501662
resources:
@@ -4253,7 +4265,7 @@ spec:
42534265
type: object
42544266
status:
42554267
description: IngestorClusterStatus defines the observed state of Ingestor
4256-
Cluster pods
4268+
Cluster
42574269
properties:
42584270
appContext:
42594271
description: App Framework context
@@ -4540,7 +4552,7 @@ spec:
45404552
description: Auxillary message describing CR status
45414553
type: string
45424554
phase:
4543-
description: Phase of the ingestion pods
4555+
description: Phase of the ingestor pods
45444556
enum:
45454557
- Pending
45464558
- Ready
@@ -4551,11 +4563,11 @@ spec:
45514563
- Error
45524564
type: string
45534565
readyReplicas:
4554-
description: Number of ready ingestion pods
4566+
description: Number of ready ingestor pods
45554567
format: int32
45564568
type: integer
45574569
replicas:
4558-
description: Number of desired ingestion pods
4570+
description: Number of desired ingestor pods
45594571
format: int32
45604572
type: integer
45614573
resourceRevMap:

pkg/splunk/enterprise/afwscheduler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ func getTelAppNameExtension(crKind string) (string, error) {
153153
return "cmaster", nil
154154
case "ClusterManager":
155155
return "cmanager", nil
156+
case "IngestorCluster":
157+
return "ingestor", nil
156158
default:
157159
return "", errors.New("Invalid CR kind for telemetry app")
158160
}

0 commit comments

Comments
 (0)