Skip to content

Commit

Permalink
setting kubeconfig as env manually
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanjunming committed Nov 14, 2024
1 parent 12dc6aa commit 9fb37fd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/otel-integration-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ./...
Expand Down

0 comments on commit 9fb37fd

Please sign in to comment.