diff --git a/.github/workflows/otel-integration-e2e-test.yml b/.github/workflows/otel-integration-e2e-test.yml index db73b5c3..b9e13206 100644 --- a/.github/workflows/otel-integration-e2e-test.yml +++ b/.github/workflows/otel-integration-e2e-test.yml @@ -22,14 +22,16 @@ jobs: with: create-kind-cluster: "true" cluster-name: "otel-integration-agent-e2e" - - name: Display KUBECONFIG config + - name: Save kubeconfig to file run: | - kubectl config view --raw - ls $HOME/.kube - cat $HOME/.kube/config + mkdir -p $HOME/.kube + kubectl config view --raw > $HOME/.kube/config + echo "KUBECONFIG=$HOME/.kube/config" >> $GITHUB_ENV - name: Setup Secret run: kubectl create secret generic coralogix-keys --from-literal=PRIVATE_KEY=123 - name: Install chart & telemetrygen for testing + env: + KUBECONFIG: ${{ env.KUBECONFIG }} run: | cd ./otel-integration/k8s-helm helm dependency build @@ -41,7 +43,7 @@ jobs: kubectl wait --all --for=condition=ready --timeout=300s pod -l component=agent-collector - name: Run E2E test env: - KUBECONFIG_PATH: /tmp/kind-config-otel-integration-agent-e2e + KUBECONFIG: ${{ env.KUBECONFIG }} run: | cd ./otel-integration/k8s-helm/e2e-test/ go test -v -run=TestE2E_Agent ./...