Skip to content

Commit

Permalink
kubeconfig passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanjunming committed Nov 13, 2024
1 parent 0ff26a6 commit 60aa7a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/otel-integration-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:
--set global.domain="coralogix.com" \
-f ./values.yaml \
-f ./e2e-test/testdata/values-e2e-test.yaml
kubectl wait --all --for=condition=ready --timeout=300s pod -l component=agent-collector
- name: Run E2E test
env:
KUBECONFIG: ${{ env.KUBECONFIG }}
run: |
cd ./otel-integration/k8s-helm/e2e-test/
go test -v -run=TestE2E_Agent ./...
Expand Down
3 changes: 2 additions & 1 deletion otel-integration/k8s-helm/e2e-test/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ func TestE2E_Agent(t *testing.T) {

k8sDir := filepath.Join("k8s")

k8sClient, err := k8stest.NewK8sClient()
kubeconfig := os.Getenv("KUBECONFIG")
k8sClient, err := k8stest.NewK8sClient(kubeconfig)
require.NoError(t, err)

// Create the namespace specific for the test
Expand Down

0 comments on commit 60aa7a5

Please sign in to comment.