diff --git a/.github/workflows/otel-integration-e2e-test.yml b/.github/workflows/otel-integration-e2e-test.yml index 4ba4bc41..fdb4c0c6 100644 --- a/.github/workflows/otel-integration-e2e-test.yml +++ b/.github/workflows/otel-integration-e2e-test.yml @@ -53,8 +53,8 @@ jobs: HOSTENDPOINT: ${{ env.HOSTENDPOINT }} KUBECONFIG: ${{ env.KUBECONFIG }} run: | - kubectl get nodes - kubectl get pods -A + kubectl get nodes -o wide + kubectl get pods -A -o wide kubectl describe daemonsets coralogix-opentelemetry-agent kubectl logs -l app.kubernetes.io/name=opentelemetry-agent - name: Run E2E test diff --git a/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml b/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml index bfde20e1..f2e236a0 100644 --- a/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml +++ b/otel-integration/k8s-helm/e2e-test/k8s/telemetrygen/deployment.yaml @@ -21,9 +21,10 @@ spec: imagePullPolicy: IfNotPresent name: telemetrygen env: - - name: NODE + - name: K8S_NODE_IP valueFrom: fieldRef: + apiVersion: v1 fieldPath: status.hostIP command: - /telemetrygen diff --git a/otel-integration/k8s-helm/e2e-test/main_test.go b/otel-integration/k8s-helm/e2e-test/main_test.go index 0d868ca3..7132062e 100644 --- a/otel-integration/k8s-helm/e2e-test/main_test.go +++ b/otel-integration/k8s-helm/e2e-test/main_test.go @@ -55,7 +55,8 @@ func TestE2E_Agent(t *testing.T) { }) defer shutdownSinks() - nodeIP := os.Getenv("NODE") + nodeIP := os.Getenv("K8S_NODE_IP") + fmt.Print("Node IP: ", nodeIP) testID := uuid.NewString()[:8] createTeleOpts := &k8stest.TelemetrygenCreateOpts{ ManifestsDir: filepath.Join(k8sDir, "telemetrygen"),