Skip to content

Commit

Permalink
use locally build lgtm image in k8s tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Sep 25, 2024
1 parent 34e21f6 commit 55ee78a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: grafana/oats
ref: 77fe94799fd10ccdbd954967309e23481dcb82fe
ref: a89d11407f7cbc1d31a01796f7746eef48a871a8
path: oats
- name: Set up Go
uses: actions/setup-go@v5
Expand Down
2 changes: 2 additions & 0 deletions examples/java/json-logging-ecs/oats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ kubernetes:
app-docker-context: ..
app-docker-tag: dice:1.1-SNAPSHOT
app-docker-port: 8080
import-images:
- grafana/otel-lgtm:latest
input:
- path: /rolldice
expected:
Expand Down
2 changes: 2 additions & 0 deletions examples/java/json-logging-logback/oats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ kubernetes:
app-docker-context: ..
app-docker-tag: dice:1.1-SNAPSHOT
app-docker-port: 8080
import-images:
- grafana/otel-lgtm:latest
input:
- path: /rolldice
expected:
Expand Down
5 changes: 5 additions & 0 deletions scripts/run-acceptance-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -euo pipefail

files=$(find examples -name "lgtm.yaml")
for file in $files; do
sed -i 's#.*image: grafana/otel-lgtm:latest.*#&\n imagePullPolicy: Never#' "$file"
done

./build-lgtm.sh
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
cd oats/yaml
Expand Down

0 comments on commit 55ee78a

Please sign in to comment.