-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a new folder for helm SVA testing only
- Loading branch information
Showing
29 changed files
with
445 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# assert for splunk operator deployment to be ready | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: splunk-operator-controller-manager | ||
status: | ||
readyReplicas: 1 | ||
availableReplicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: ../script/installoperator.sh | ||
background: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
# assert for cluster manager custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: ClusterManager | ||
metadata: | ||
name: cm | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# check if stateful sets are created | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-cm-cluster-manager | ||
status: | ||
replicas: 1 | ||
|
||
--- | ||
# check if secret object are created | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: splunk-cm-cluster-manager-secret-v1 | ||
|
||
--- | ||
# assert for indexer cluster custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: IndexerCluster | ||
metadata: | ||
name: idxc | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# check for stateful set and replicas as configured | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-idxc-indexer | ||
status: | ||
replicas: 3 | ||
|
||
--- | ||
# check if secret object are created | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: splunk-idxc-indexer-secret-v1 | ||
|
||
--- | ||
# assert for SearchHeadCluster custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: SearchHeadCluster | ||
metadata: | ||
name: shc | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# check if secret object are created | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: splunk-shc-deployer-secret-v1 | ||
|
||
--- | ||
# check if secret object are created | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: splunk-shc-search-head-secret-v1 | ||
|
||
--- | ||
# check for stateful set and replicas as configured | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-shc-search-head | ||
status: | ||
replicas: 3 | ||
|
||
--- | ||
# check for statefull set | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-shc-deployer | ||
status: | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: helm install splunk-c3 $HELM_REPO_PATH/splunk-enterprise -f c3_config.yaml | ||
namespaced: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
# assert for indexer cluster custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: IndexerCluster | ||
metadata: | ||
name: idxc | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# check for stateful sets and replicas updated | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-idxc-indexer | ||
status: | ||
replicas: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: helm upgrade splunk-c3 $HELM_REPO_PATH/splunk-enterprise --reuse-values --set indexerCluster.replicaCount=4 | ||
namespaced: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: helm uninstall splunk-c3 | ||
namespaced: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
splunk-operator: | ||
enabled: false | ||
splunkOperator: | ||
clusterWideAccess: false | ||
persistentVolumeClaim: | ||
storageClassName: gp2 | ||
|
||
sva: | ||
c3: | ||
enabled: true | ||
|
||
clusterManager: | ||
name: cm | ||
|
||
indexerClusters: | ||
- name: idxc | ||
|
||
searchHeadClusters: | ||
- name: shc | ||
|
||
|
||
indexerCluster: | ||
enabled: true | ||
additionalLabels: | ||
label: "true" | ||
additionalAnnotations: | ||
annotation: "true" | ||
|
||
clusterManager: | ||
enabled: true | ||
additionalLabels: | ||
label: "true" | ||
additionalAnnotations: | ||
annotation: "true" | ||
|
||
searchHeadCluster: | ||
enabled: true | ||
additionalLabels: | ||
label: "true" | ||
additionalAnnotations: | ||
annotation: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
splunk-operator: | ||
enabled: false | ||
sva: | ||
c3: | ||
enabled: true | ||
|
||
clusterManager: | ||
name: cm | ||
|
||
indexerClusters: | ||
- name: idxc | ||
replicaCount: 4 | ||
|
||
searchHeadClusters: | ||
- name: shc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: ../script/installoperator.sh | ||
background: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
|
||
--- | ||
# assert for cluster manager custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: ClusterManager | ||
metadata: | ||
name: cm | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# check for stateful set | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-cm-cluster-manager | ||
status: | ||
replicas: 1 | ||
|
||
--- | ||
# check if secret object is created | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: splunk-cm-cluster-manager-secret-v1 | ||
|
||
--- | ||
# assert for indexer cluster custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: IndexerCluster | ||
metadata: | ||
name: idx1 | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# assert for indexer cluster custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: IndexerCluster | ||
metadata: | ||
name: idx2 | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# assert for SearchHeadCluster custom resource to be ready | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: SearchHeadCluster | ||
metadata: | ||
name: shc1 | ||
status: | ||
phase: Ready | ||
|
||
--- | ||
# check if secret object is created | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: splunk-shc1-deployer-secret-v1 | ||
|
||
--- | ||
# check if secret object is created | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: splunk-shc1-search-head-secret-v1 | ||
|
||
--- | ||
# check for stateful set and replicas | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-shc1-search-head | ||
status: | ||
replicas: 3 | ||
|
||
--- | ||
# check for stateful set | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: splunk-shc1-deployer | ||
status: | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: helm install splunk-m4 $HELM_REPO_PATH/splunk-enterprise -f m4_config.yaml | ||
namespaced: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: helm uninstall splunk-m4 | ||
namespaced: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
splunk-operator: | ||
enabled: false | ||
splunkOperator: | ||
clusterWideAccess: false | ||
persistentVolumeClaim: | ||
storageClassName: gp2 | ||
sva: | ||
m4: | ||
enabled: true | ||
|
||
clusterManager: | ||
name: cm | ||
allSites: "site1,site2" | ||
site: site1 | ||
zone: us-west-2d | ||
|
||
indexerClusters: | ||
- name: idx1 | ||
site: site1 | ||
zone: us-west-2d | ||
- name: idx2 | ||
site: site2 | ||
zone: us-west-2b | ||
|
||
searchHeadClusters: | ||
- name: shc1 | ||
site: site2 | ||
zone: us-west-2b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: ../script/installoperator.sh | ||
background: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: helm-service-account | ||
spec: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# check for standalone to be in ready state | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: Standalone | ||
metadata: | ||
name: stdln | ||
status: | ||
phase: Ready |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: helm install splunk-stdl $HELM_REPO_PATH/splunk-enterprise --set splunk-operator.enabled=false --set standalone.enabled=true | ||
namespaced: true | ||
spec: | ||
serviceAccount: helm-service-account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# check for standalone to be scaled | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: Standalone | ||
metadata: | ||
name: stdln | ||
status: | ||
replicas: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: helm upgrade --set standalone.replicaCount=2 --set splunk-operator.enabled=false --set standalone.enabled=true splunk-stdl ../../../../helm-chart/splunk-enterprise | ||
namespaced: true | ||
spec: | ||
serviceAccount: helm-service-account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# check for standalone to be scaled down | ||
apiVersion: enterprise.splunk.com/v4 | ||
kind: Standalone | ||
metadata: | ||
name: stdln | ||
status: | ||
replicas: 1 |
Oops, something went wrong.