-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into helm-auth-proxy-service-label-fix
- Loading branch information
Showing
24 changed files
with
434 additions
and
24 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
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
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
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
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
13 changes: 13 additions & 0 deletions
13
kuttl/tests/helm/c3-with-apps-private-link/00-create-bucket.yaml
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,13 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: aws s3 mb s3://helm-test-c3-with-apps-$NAMESPACE --region $AWS_DEFAULT_REGION | ||
background: false | ||
skipLogOutput: true | ||
- script: aws s3 cp --recursive s3://$TEST_S3_BUCKET/appframework/v2apps s3://helm-test-c3-with-apps-$NAMESPACE/appframework --region $AWS_DEFAULT_REGION | ||
background: false | ||
skipLogOutput: true | ||
- script: aws s3 mb s3://helm-test-c3-with-apps-smartstore-$NAMESPACE --region $AWS_DEFAULT_REGION | ||
background: false | ||
skipLogOutput: true |
95 changes: 95 additions & 0 deletions
95
kuttl/tests/helm/c3-with-apps-private-link/01-update-app-config.yaml
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,95 @@ | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: pwd | ||
background: false | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.defaults.volumeName" "volume_app_repo" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.defaults.scope" "local" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.appSources[0].name" "apps" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.appSources[0].location" "appframework" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.appSources[0].scope" "cluster" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.volumes[0].name" "volume_app_repo" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.volumes[0].storageType" "s3" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.volumes[0].provider" "aws" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.volumes[0].path" "helm-test-c3-with-apps-$NAMESPACE" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.volumes[0].endpoint" $TEST_VPC_ENDPOINT_URL | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.appRepo.volumes[0].region" $S3_REGION | ||
background: false | ||
skipLogOutput: true | ||
- script: pwd | ||
background: false | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.defaults.volumeName" "volume_app_repo" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.defaults.scope" "local" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.appSources[0].name" "apps" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.appSources[0].location" "appframework" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.appSources[0].scope" "cluster" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.volumes[0].name" "volume_app_repo" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.volumes[0].storageType" "s3" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.volumes[0].provider" "aws" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.volumes[0].path" "helm-test-c3-with-apps-$NAMESPACE" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.volumes[0].endpoint" $TEST_VPC_ENDPOINT_URL | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "searchHeadCluster.appRepo.volumes[0].region" $S3_REGION | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.smartstore.defaults.volumeName" "helm-test-c3-with-apps-smartstore-$NAMESPACE" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.smartstore.indexes[0].volumeName" "helm-test-c3-with-apps-smartstore-$NAMESPACE" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.smartstore.indexes[1].volumeName" "helm-test-c3-with-apps-smartstore-$NAMESPACE" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.smartstore.volumes[0].name" "helm-test-c3-with-apps-smartstore-$NAMESPACE" | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.smartstore.volumes[0].path" "helm-test-c3-with-apps-smartstore-$NAMESPACE"/smartstore | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.smartstore.volumes[0].region" $S3_REGION | ||
background: false | ||
skipLogOutput: true | ||
- script: yq w -i c3_config.yaml "clusterManager.smartstore.volumes[0].endpoint" $TEST_VPC_ENDPOINT_URL | ||
background: false | ||
skipLogOutput: 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: v1 | ||
kind: Secret | ||
metadata: | ||
name: s3-secret |
9 changes: 9 additions & 0 deletions
9
kuttl/tests/helm/c3-with-apps-private-link/02-create-s3-secret.yaml
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 @@ | ||
#create new s3 secret to be used in app installation | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: kubectl create secret generic s3-secret --from-literal=s3_access_key=$AWS_ACCESS_KEY_ID --from-literal=s3_secret_key=$AWS_SECRET_ACCESS_KEY --namespace $NAMESPACE | ||
background: false | ||
#namespaced: true | ||
skipLogOutput: true |
100 changes: 100 additions & 0 deletions
100
kuttl/tests/helm/c3-with-apps-private-link/03-assert.yaml
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,100 @@ | ||
--- | ||
# assert for splunk operator deployment to be ready | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: splunk-operator-controller-manager | ||
status: | ||
readyReplicas: 1 | ||
availableReplicas: 1 | ||
|
||
--- | ||
# 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 |
6 changes: 6 additions & 0 deletions
6
kuttl/tests/helm/c3-with-apps-private-link/03-install-c3.yaml
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 --set splunk-operator.splunkOperator.image.repository=${KUTTL_SPLUNK_OPERATOR_IMAGE} --set splunk-operator.image.repository=${KUTTL_SPLUNK_ENTERPRISE_IMAGE} | ||
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 |
5 changes: 5 additions & 0 deletions
5
kuttl/tests/helm/c3-with-apps-private-link/04-scaleup-c3.yaml
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 |
5 changes: 5 additions & 0 deletions
5
kuttl/tests/helm/c3-with-apps-private-link/05-uninstall-c3.yaml
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 |
Oops, something went wrong.