Commit e484d288 authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

fix if statement and set kube config (#611)

parent 3bd536b2
...@@ -26,10 +26,12 @@ jobs: ...@@ -26,10 +26,12 @@ jobs:
chmod +x beekeeper chmod +x beekeeper
- name: Set testing cluster (DNS discovery) - name: Set testing cluster (DNS discovery)
run: ./beeinfra.sh install --dns-disco --local -r "${REPLICA}" --bootnode /dnsaddr/localhost run: ./beeinfra.sh install --dns-disco --local -r "${REPLICA}" --bootnode /dnsaddr/localhost
- name: Add entries to /etc/hosts - name: Add entries to /etc/hosts and set kube config
run: | run: |
echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts echo -e "127.0.0.10\tregistry.localhost" | sudo tee -a /etc/hosts
for ((i=0; i<REPLICA; i++)); do echo -e "127.0.1.$((i+1))\tbee-${i}.localhost bee-${i}-debug.localhost"; done | sudo tee -a /etc/hosts for ((i=0; i<REPLICA; i++)); do echo -e "127.0.1.$((i+1))\tbee-${i}.localhost bee-${i}-debug.localhost"; done | sudo tee -a /etc/hosts
mkdir ~/.kube
cp $(k3d get-kubeconfig --name='k3s-default') ~/.kube/config
- name: Test fullconnectivity - name: Test fullconnectivity
run: ./beekeeper check fullconnectivity --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}" run: ./beekeeper check fullconnectivity --api-scheme http --debug-api-scheme http --disable-namespace --debug-api-domain localhost --api-domain localhost --node-count "${REPLICA}"
- name: Test pingpong - name: Test pingpong
......
...@@ -69,7 +69,7 @@ jobs: ...@@ -69,7 +69,7 @@ jobs:
env: env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
- name: Trigger Beekeeper - name: Trigger Beekeeper
if: success() && ${{ github.ref }} == "refs/heads/master" && matrix.os == 'ubuntu-latest' if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && success()
uses: peter-evans/repository-dispatch@v1 uses: peter-evans/repository-dispatch@v1
with: with:
token: ${{ secrets.REPO_GHA_PAT }} token: ${{ secrets.REPO_GHA_PAT }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment