Skip to content

Commit

Permalink
leaving default values for local execution, sed will match actual var…
Browse files Browse the repository at this point in the history
…iables values
  • Loading branch information
pszkamruk-splunk committed Oct 10, 2024
1 parent dfc9c70 commit 0e7d565
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/functional_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ jobs:
sleep 1;
done
# set splunk version, hec_token, splunk password in k8s-splunk.yaml file
sed -i "s/ENV_SPLUNK_VERSION/${SPLUNK_VERSION}/g" ci_scripts/k8s-splunk.yml
sed -i "s/ENV_CI_SPLUNK_PASSWORD/${CI_SPLUNK_PASSWORD}/g" ci_scripts/k8s-splunk.yml
sed -i "s/ENV_CI_SPLUNK_HEC_TOKEN/${CI_SPLUNK_HEC_TOKEN}/g" ci_scripts/k8s-splunk.yml
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
6 changes: 3 additions & 3 deletions 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:ENV_SPLUNK_VERSION
image: docker.io/splunk/splunk:9.3.0
ports:
- name: web-interface
containerPort: 8000
Expand All @@ -77,11 +77,11 @@ spec:
- name: SPLUNK_USER
value: root
- name: SPLUNK_PASSWORD
value: ENV_CI_SPLUNK_PASSWORD
value: helloworld
- name: SPLUNK_LAUNCH_CONF
value: OPTIMISTIC_ABOUT_FILE_LOCKING=1
- name: SPLUNK_HEC_TOKEN
value: ENV_CI_SPLUNK_HEC_TOKEN
value: 00000000-0000-0000-0000-0000000000000
volumeMounts:
- name: config-volume
mountPath: /tmp/defaults/
Expand Down

0 comments on commit 0e7d565

Please sign in to comment.