Skip to content

Commit 8ab8c1a

Browse files
authored
Merge branch 'develop' into CSPL_2920
2 parents 31fa22f + 89c4da4 commit 8ab8c1a

30 files changed

+455
-0
lines changed

kuttl/kuttl-test-helm-sva.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Entrypoint for helm automation
2+
apiVersion: kuttl.dev/v1beta1
3+
kind: TestSuite
4+
testDirs:
5+
- ./kuttl/tests/helm_sva
6+
parallel: 1
7+
timeout: 7000
8+
startKIND: false
9+
artifactsDir: kuttl-artifacts
10+
kindNodeCache: false
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# assert for splunk operator deployment to be ready
3+
apiVersion: apps/v1
4+
kind: Deployment
5+
metadata:
6+
name: splunk-operator-controller-manager
7+
status:
8+
readyReplicas: 1
9+
availableReplicas: 1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kuttl.dev/v1beta1
3+
kind: TestStep
4+
commands:
5+
- script: ../script/installoperator.sh
6+
background: false
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
# assert for cluster manager custom resource to be ready
3+
apiVersion: enterprise.splunk.com/v4
4+
kind: ClusterManager
5+
metadata:
6+
name: cm
7+
status:
8+
phase: Ready
9+
10+
---
11+
# check if stateful sets are created
12+
apiVersion: apps/v1
13+
kind: StatefulSet
14+
metadata:
15+
name: splunk-cm-cluster-manager
16+
status:
17+
replicas: 1
18+
19+
---
20+
# check if secret object are created
21+
apiVersion: v1
22+
kind: Secret
23+
metadata:
24+
name: splunk-cm-cluster-manager-secret-v1
25+
26+
---
27+
# assert for indexer cluster custom resource to be ready
28+
apiVersion: enterprise.splunk.com/v4
29+
kind: IndexerCluster
30+
metadata:
31+
name: idxc
32+
status:
33+
phase: Ready
34+
35+
---
36+
# check for stateful set and replicas as configured
37+
apiVersion: apps/v1
38+
kind: StatefulSet
39+
metadata:
40+
name: splunk-idxc-indexer
41+
status:
42+
replicas: 3
43+
44+
---
45+
# check if secret object are created
46+
apiVersion: v1
47+
kind: Secret
48+
metadata:
49+
name: splunk-idxc-indexer-secret-v1
50+
51+
---
52+
# assert for SearchHeadCluster custom resource to be ready
53+
apiVersion: enterprise.splunk.com/v4
54+
kind: SearchHeadCluster
55+
metadata:
56+
name: shc
57+
status:
58+
phase: Ready
59+
60+
---
61+
# check if secret object are created
62+
apiVersion: v1
63+
kind: Secret
64+
metadata:
65+
name: splunk-shc-deployer-secret-v1
66+
67+
---
68+
# check if secret object are created
69+
apiVersion: v1
70+
kind: Secret
71+
metadata:
72+
name: splunk-shc-search-head-secret-v1
73+
74+
---
75+
# check for stateful set and replicas as configured
76+
apiVersion: apps/v1
77+
kind: StatefulSet
78+
metadata:
79+
name: splunk-shc-search-head
80+
status:
81+
replicas: 3
82+
83+
---
84+
# check for statefull set
85+
apiVersion: apps/v1
86+
kind: StatefulSet
87+
metadata:
88+
name: splunk-shc-deployer
89+
status:
90+
replicas: 1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kuttl.dev/v1beta1
3+
kind: TestStep
4+
commands:
5+
- command: helm install splunk-c3 $HELM_REPO_PATH/splunk-enterprise -f c3_config.yaml
6+
namespaced: true
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
# assert for indexer cluster custom resource to be ready
3+
apiVersion: enterprise.splunk.com/v4
4+
kind: IndexerCluster
5+
metadata:
6+
name: idxc
7+
status:
8+
phase: Ready
9+
10+
---
11+
# check for stateful sets and replicas updated
12+
apiVersion: apps/v1
13+
kind: StatefulSet
14+
metadata:
15+
name: splunk-idxc-indexer
16+
status:
17+
replicas: 4
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kuttl.dev/v1beta1
2+
kind: TestStep
3+
commands:
4+
- command: helm upgrade splunk-c3 $HELM_REPO_PATH/splunk-enterprise --reuse-values --set indexerCluster.replicaCount=4
5+
namespaced: true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kuttl.dev/v1beta1
2+
kind: TestStep
3+
commands:
4+
- command: helm uninstall splunk-c3
5+
namespaced: true
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
splunk-operator:
2+
enabled: false
3+
splunkOperator:
4+
clusterWideAccess: false
5+
persistentVolumeClaim:
6+
storageClassName: gp2
7+
8+
sva:
9+
c3:
10+
enabled: true
11+
12+
clusterManager:
13+
name: cm
14+
15+
indexerClusters:
16+
- name: idxc
17+
18+
searchHeadClusters:
19+
- name: shc
20+
21+
22+
indexerCluster:
23+
enabled: true
24+
additionalLabels:
25+
label: "true"
26+
additionalAnnotations:
27+
annotation: "true"
28+
29+
clusterManager:
30+
enabled: true
31+
additionalLabels:
32+
label: "true"
33+
additionalAnnotations:
34+
annotation: "true"
35+
36+
searchHeadCluster:
37+
enabled: true
38+
additionalLabels:
39+
label: "true"
40+
additionalAnnotations:
41+
annotation: "true"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
splunk-operator:
2+
enabled: false
3+
sva:
4+
c3:
5+
enabled: true
6+
7+
clusterManager:
8+
name: cm
9+
10+
indexerClusters:
11+
- name: idxc
12+
replicaCount: 4
13+
14+
searchHeadClusters:
15+
- name: shc

0 commit comments

Comments
 (0)