diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 672f719..25d243b 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -93,6 +93,12 @@ jobs: working-directory: ./examples/collatz run: | kubectl wait --for=condition=Available=True --timeout=90s Deployment -l serviceweaver/app_name=collatz + - name: Call the API + run: | + LOAD_BALANCER_NAME=$(kubectl get service -o=go-template \ + --template='{{- range .items -}}{{- if eq .spec.type "LoadBalancer" -}}{{ .metadata.name }}{{- end -}}{{- end -}}') + kubectl run -i --rm --restart=Never --image=busybox:latest test-api \ + --command wget -- -q -O - http://$(LOAD_BALANCER_NAME)/\?x\=10 - name: Display deployment logs if: failure() working-directory: ./examples/collatz