Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: Adding splunk matrix #1493

Merged
merged 6 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading