From 5f56cc90c4502874d40925ea703f8c8af4593ad0 Mon Sep 17 00:00:00 2001 From: Shaun Agostinho Date: Thu, 26 Sep 2024 18:17:51 -0700 Subject: [PATCH] fix networky mtr test docker host network --- Dockerfile | 3 +++ helm/netwatcher-agent/templates/deployment.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2f905b3..ea2f03a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ WORKDIR /app # Copy the local package files to the container's workspace. COPY . /app +# We need bash for some tests +RUN apk update && apk add bash + # Download all the dependencies RUN go mod download diff --git a/helm/netwatcher-agent/templates/deployment.yaml b/helm/netwatcher-agent/templates/deployment.yaml index 30ad4c5..af6ff4e 100644 --- a/helm/netwatcher-agent/templates/deployment.yaml +++ b/helm/netwatcher-agent/templates/deployment.yaml @@ -26,6 +26,7 @@ spec: labels: app: netwatcher-agent spec: + hostNetwork: true containers: - env: - name: ENV_HOST