Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
0e36568
CSPL-3551 Init IngestorCluster CR implementation
kasiakoziol Jul 24, 2025
2cca0d7
CSPL-3551 Enhancing Ingestor inputs
kasiakoziol Jul 25, 2025
f747ab4
Merge branch 'develop' into CSPL-3551-ingestion-cr
kasiakoziol Jul 29, 2025
9a7503c
fix
kasiakoziol Jul 29, 2025
7134350
fix
kasiakoziol Jul 29, 2025
44349fa
CSPL-3551 Adding tests
kasiakoziol Jul 29, 2025
e71ea9c
CSPL-3551 Mound defaults and update them with no Splunk restart
kasiakoziol Jul 31, 2025
14ccef4
Merge branch 'develop' into CSPL-3551-ingestion-cr
kasiakoziol Jul 31, 2025
8876d0e
CSPL-3551 Fixing code after tests
kasiakoziol Aug 1, 2025
5c31cab
CSPL-3895-indexercluster (#1562)
Igor-splunk Aug 7, 2025
0c9e908
CSPL-3551 Applying fixes do Indexer integration
kasiakoziol Aug 7, 2025
89f9eb4
Merge branch 'develop' into CSPL-3551-ingestion-cr
kasiakoziol Aug 11, 2025
d885a73
CSPL-3551 Fixes
kasiakoziol Aug 11, 2025
56aa780
Merge branch 'develop' into CSPL-3551-ingestion-cr
kasiakoziol Aug 18, 2025
1c77634
CSPL-3551 Fixes
kasiakoziol Aug 19, 2025
fb4e87f
CSPL-3560 Initial docs for I&I separation
kasiakoziol Aug 26, 2025
3e376d8
Merge branch 'develop' into CSPL-3551-ingestion-cr
kasiakoziol Aug 29, 2025
e62f381
CSPL-3551 Update documentation to reflect on Grafana
kasiakoziol Sep 1, 2025
84d8491
CSPL-3556 Unit tests
kasiakoziol Sep 10, 2025
c3b3aa6
CSPL-3972 Addressing TODOs
kasiakoziol Sep 11, 2025
2af9061
CSPL-3972 Addressing TODOs
kasiakoziol Sep 11, 2025
053352d
CSPL-3551 Moving default from types to controller code
kasiakoziol Sep 11, 2025
e844286
CSPL-3551 Applying previous changes to IndexerCluster
kasiakoziol Sep 18, 2025
500cdfa
CSPL-3551 Moving validations to separate function and adding validati…
kasiakoziol Sep 19, 2025
4b064a6
CSPL-3551 Making sure all inputs are put into status
kasiakoziol Sep 19, 2025
9c6cd69
CSPL-3551 Update of conf files when queue name or type change
kasiakoziol Sep 22, 2025
759b09b
CSPL-3551 Unit tests
kasiakoziol Sep 23, 2025
20d9d6c
CSPL-4003 Helm charts support for bus and pipeline configs
kasiakoziol Sep 29, 2025
f9fb45a
CSPL-4003 Docs update
kasiakoziol Oct 1, 2025
c5e4c2b
CSPL-4003 Addressing comments
kasiakoziol Oct 2, 2025
2de618a
CSPL-3558 Integ tests init
kasiakoziol Oct 2, 2025
0393139
CSPL-3558 Adding extra validation for integraion test
kasiakoziol Oct 2, 2025
4d3865c
CSPL-3558 Refactoring
kasiakoziol Oct 2, 2025
c354062
CSPL-3558 Adding scenario for update and delete
kasiakoziol Oct 3, 2025
c204d52
CSPL-3558 Adding helm test
kasiakoziol Oct 3, 2025
027c039
CSPL-3558 Update of k8s version
kasiakoziol Oct 3, 2025
c5a97dc
CSPL-3558 Fix metrics-server installation issues after k8s version up…
kasiakoziol Oct 6, 2025
fc28db0
CSPL-3558 Adding additional tests
kasiakoziol Oct 7, 2025
a7ae40f
CSPL-3558 Fixing helm tests
kasiakoziol Oct 9, 2025
d3b2ad6
Merge branch 'develop' into CSPL-3551-ingestion-cr
kasiakoziol Oct 13, 2025
3325113
Merge branch 'CSPL-3551-ingestion-cr' into feature/CSPL-3551-ingestio…
kasiakoziol Oct 13, 2025
13b8f4f
Merge branch 'feature/CSPL-3551-ingestion-cr-todos' into feature/CSPL…
kasiakoziol Oct 13, 2025
4622102
CSPL-3558 Fix tests after merge
kasiakoziol Oct 13, 2025
9fbcb4a
CSPL-3558 Fix helm tests
kasiakoziol Oct 16, 2025
7480ed8
CSPL-4022 Remove pipeline config from inputs
kasiakoziol Oct 17, 2025
d21a9a3
CSPL-4022 Remove bus inputs
kasiakoziol Oct 20, 2025
7edb81b
CSPL-4022 Introduce BusConfiguration CR
kasiakoziol Oct 22, 2025
a5b2db3
CSPL-4022 Update docs and tests
kasiakoziol Oct 22, 2025
9f57abc
CSPL-4022 Update ns reference for BusConfiguration
kasiakoziol Oct 23, 2025
10a4fc0
CSPL-4022 Fixing tests and adding bus config to ingestor controller
kasiakoziol Oct 23, 2025
db02bfd
CSPL-4022 Fix update behaviour
kasiakoziol Oct 23, 2025
ceb2c71
CSPL-4022 Docs update
kasiakoziol Oct 27, 2025
6618a3f
Merge pull request #1600 from splunk/feature/CSPL-4022-move-inputs-to-cr
kasiakoziol Oct 28, 2025
d7f367b
CSPL-4022 Fix failing tests
kasiakoziol Oct 28, 2025
25b76a3
Merge pull request #1593 from splunk/feature/CSPL-3558-integ-tests
kasiakoziol Oct 28, 2025
c6cea58
Merge pull request #1576 from splunk/feature/CSPL-3551-ingestion-cr-t…
kasiakoziol Oct 28, 2025
192d3bf
CSPL-4022 Fix tests
kasiakoziol Oct 29, 2025
c6972f7
Merge branch 'develop' into CSPL-3551-ingestion-cr
kasiakoziol Oct 29, 2025
cfd3cd7
CSPL-4022 Addressing PR comments
kasiakoziol Oct 29, 2025
5843632
CSPL-4022 Address comments
kasiakoziol Oct 29, 2025
4e37060
CSPL-4022 Fix helm tests
kasiakoziol Oct 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
appframeworksS1,
managersecret,
managermc,
indingsep,
]
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/arm-AL2023-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
managercrcrud,
licensemanager,
managerdeletecr,
indingsep,
]
runs-on: ubuntu-latest
needs: build-operator-image-arm-al2023
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/arm-RHEL-build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
managercrcrud,
licensemanager,
managerdeletecr,
indingsep,
]
runs-on: ubuntu-latest
needs: build-operator-image-arm-rhel
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/arm-RHEL-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
managercrcrud,
licensemanager,
managerdeletecr,
indingsep,
]
runs-on: ubuntu-latest
needs: build-operator-image-arm-rhel
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/arm-Ubuntu-build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
appframeworksS1,
managersecret,
managermc,
indingsep,
]
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/arm-Ubuntu-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
managercrcrud,
licensemanager,
managerdeletecr,
indingsep,
]
runs-on: ubuntu-latest
needs: build-operator-image-arm-ubuntu
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ jobs:
managerappframeworkm4,
managersecret,
managermc,
indingsep,
]
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/distroless-build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ jobs:
managerappframeworkm4,
managersecret,
managermc,
indingsep,
]
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/distroless-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
managercrcrud,
licensemanager,
managerdeletecr,
indingsep,
]
runs-on: ubuntu-latest
needs: build-operator-image-distroless
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/helm-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ jobs:
version: ${{ steps.dotenv.outputs.KUBECTL_VERSION }}
- name: Install kuttl
run: |
sudo curl -LO https://github.com/kudobuilder/kuttl/releases/download/v0.12.0/kuttl_0.12.0_linux_x86_64.tar.gz
sudo tar -xvzf kuttl_0.12.0_linux_x86_64.tar.gz
sudo curl -LO https://github.com/kudobuilder/kuttl/releases/download/v0.22.0/kuttl_0.22.0_linux_x86_64.tar.gz
sudo tar -xvzf kuttl_0.22.0_linux_x86_64.tar.gz
sudo chmod +x kubectl-kuttl
sudo mv kubectl-kuttl /usr/local/bin/kubectl-kuttl
- name: Install Python
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
managercrcrud,
licensemanager,
managerdeletecr,
indingsep,
]
runs-on: ubuntu-latest
needs: build-operator-image
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/manual-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
managerscaling,
managercrcrud,
licensemanager,
indingsep,
]
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/namespace-scope-int-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
managerscaling,
managercrcrud,
licensemanager,
indingsep,
]
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly-int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
managerscaling,
managercrcrud,
licensemanager,
indingsep,
]
runs-on: ubuntu-latest
needs: build-operator-image
Expand Down
22 changes: 22 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Code generated by tool. DO NOT EDIT.
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: splunk.com
layout:
- go.kubebuilder.io/v4
Expand Down Expand Up @@ -109,4 +113,22 @@ resources:
kind: LicenseManager
path: github.com/splunk/splunk-operator/api/v4
version: v4
- api:
crdVersion: v1
namespaced: true
controller: true
domain: splunk.com
group: enterprise
kind: IngestorCluster
path: github.com/splunk/splunk-operator/api/v4
version: v4
- api:
crdVersion: v1
namespaced: true
controller: true
domain: splunk.com
group: enterprise
kind: BusConfiguration
path: github.com/splunk/splunk-operator/api/v4
version: v4
version: "3"
134 changes: 134 additions & 0 deletions api/v4/busconfiguration_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
/*
Copyright 2025.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v4

import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)

const (
// BusConfigurationPausedAnnotation is the annotation that pauses the reconciliation (triggers
// an immediate requeue)
BusConfigurationPausedAnnotation = "busconfiguration.enterprise.splunk.com/paused"
)

// BusConfigurationSpec defines the desired state of BusConfiguration
type BusConfigurationSpec struct {
Type string `json:"type"`

SQS SQSSpec `json:"sqs"`
}

type SQSSpec struct {
QueueName string `json:"queueName"`

AuthRegion string `json:"authRegion"`

Endpoint string `json:"endpoint"`

LargeMessageStoreEndpoint string `json:"largeMessageStoreEndpoint"`

LargeMessageStorePath string `json:"largeMessageStorePath"`

DeadLetterQueueName string `json:"deadLetterQueueName"`
}

// BusConfigurationStatus defines the observed state of BusConfiguration.
type BusConfigurationStatus struct {
// Phase of the bus configuration
Phase Phase `json:"phase"`

// Resource revision tracker
ResourceRevMap map[string]string `json:"resourceRevMap"`

// Auxillary message describing CR status
Message string `json:"message"`
}

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status

// BusConfiguration is the Schema for a Splunk Enterprise bus configuration
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
// +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.selector
// +kubebuilder:resource:path=busconfigurations,scope=Namespaced,shortName=bus
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Status of bus configuration"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Age of bus configuration resource"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message",description="Auxillary message describing CR status"
// +kubebuilder:storageversion

// BusConfiguration is the Schema for the busconfigurations API
type BusConfiguration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty,omitzero"`

Spec BusConfigurationSpec `json:"spec"`
Status BusConfigurationStatus `json:"status,omitempty,omitzero"`
}

// DeepCopyObject implements runtime.Object
func (in *BusConfiguration) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}

// +kubebuilder:object:root=true

// BusConfigurationList contains a list of BusConfiguration
type BusConfigurationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []BusConfiguration `json:"items"`
}

func init() {
SchemeBuilder.Register(&BusConfiguration{}, &BusConfigurationList{})
}

// NewEvent creates a new event associated with the object and ready
// to be published to Kubernetes API
func (bc *BusConfiguration) NewEvent(eventType, reason, message string) corev1.Event {
t := metav1.Now()
return corev1.Event{
ObjectMeta: metav1.ObjectMeta{
GenerateName: reason + "-",
Namespace: bc.ObjectMeta.Namespace,
},
InvolvedObject: corev1.ObjectReference{
Kind: "BusConfiguration",
Namespace: bc.Namespace,
Name: bc.Name,
UID: bc.UID,
APIVersion: GroupVersion.String(),
},
Reason: reason,
Message: message,
Source: corev1.EventSource{
Component: "splunk-busconfiguration-controller",
},
FirstTimestamp: t,
LastTimestamp: t,
Count: 1,
Type: eventType,
ReportingController: "enterprise.splunk.com/busconfiguration-controller",
}
}
6 changes: 6 additions & 0 deletions api/v4/indexercluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const (
type IndexerClusterSpec struct {
CommonSplunkSpec `json:",inline"`

// Bus configuration reference
BusConfigurationRef corev1.ObjectReference `json:"busConfigurationRef,omitempty"`

// Number of search head pods; a search head cluster will be created if > 1
Replicas int32 `json:"replicas"`
}
Expand Down Expand Up @@ -111,6 +114,9 @@ type IndexerClusterStatus struct {

// Auxillary message describing CR status
Message string `json:"message"`

// Bus configuration
BusConfiguration BusConfigurationSpec `json:"busConfiguration,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
Loading
Loading