Skip to content

Commit

Permalink
Testing: Adding splunk matrix (#1493)
Browse files Browse the repository at this point in the history
* updated k8s and splunk matrix

* removing k8s update

* adding splunk 8.2.9, setting hardoced values: hec, splunk_pass

* adding splunk version to job  name

* minor update

* leaving default values for local execution, sed will match actual variables values
  • Loading branch information
pszkamruk-splunk authored Oct 10, 2024
1 parent ee76296 commit 44c7c4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/functional_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
functional-test:
name: Kubernetes ${{ matrix.kubernetes_version }} ${{ matrix.container_runtime }}
name: K8s ${{ matrix.kubernetes_version }} ${{ matrix.container_runtime }}, Splunk ${{ matrix.splunk_version }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
Expand All @@ -24,6 +24,9 @@ jobs:
- "docker"
- "containerd"
- "cri-o"
splunk_version:
- 9.3.0
- 8.2.9
env:
CI_SPLUNK_PORT: 8089
CI_SPLUNK_USERNAME: admin
Expand All @@ -33,6 +36,7 @@ jobs:
CI_INDEX_METRICS: ci_metrics
CONTAINER_RUNTIME: ${{ matrix.container_runtime }}
KUBERNETES_VERSION: ${{ matrix.kubernetes_version }}
SPLUNK_VERSION: ${{ matrix.splunk_version }}
MINIKUBE_VERSION: latest

steps:
Expand Down Expand Up @@ -70,6 +74,11 @@ jobs:
until kubectl -n default get serviceaccount default -o name; do
sleep 1;
done
# set splunk version, hec_token, splunk password in k8s-splunk.yaml file
sed -i "s/splunk:9.3.0/splunk:${SPLUNK_VERSION}/g" ci_scripts/k8s-splunk.yml
sed -i "s/value: helloworld/value: ${CI_SPLUNK_PASSWORD}/g" ci_scripts/k8s-splunk.yml
sed -i "s/value: 00000000-0000-0000-0000-0000000000000/value: ${CI_SPLUNK_HEC_TOKEN}/g" ci_scripts/k8s-splunk.yml
cat ci_scripts/k8s-splunk.yml
# Install Splunk on minikube
kubectl apply -f ci_scripts/k8s-splunk.yml
# Wait until splunk is ready
Expand Down
2 changes: 1 addition & 1 deletion ci_scripts/k8s-splunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
runAsGroup: 0
containers:
- name: splunk
image: docker.io/splunk/splunk:8.2.0
image: docker.io/splunk/splunk:9.3.0
ports:
- name: web-interface
containerPort: 8000
Expand Down

0 comments on commit 44c7c4f

Please sign in to comment.