2022-12-21 04:49:21 -05:00
|
|
|
name: E2E load balancer test
|
|
|
|
description: "Test load balancer functionality."
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
kubeconfig:
|
|
|
|
description: "The kubeconfig of the cluster to test."
|
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
# This action assumes that the cluster is in an ready state, with all nodes joined and ready.
|
|
|
|
- name: Create deployments
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
|
|
|
working-directory: ./.github/actions/e2e_lb
|
|
|
|
run: |
|
|
|
|
kubectl apply -f ns.yml
|
|
|
|
kubectl apply -f lb.yml
|
2023-06-09 10:59:19 -04:00
|
|
|
bazel run //e2e/internal/lb:lb_test
|
2022-12-21 04:49:21 -05:00
|
|
|
|
|
|
|
- name: Delete deployment
|
|
|
|
if: always()
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
|
|
|
working-directory: ./.github/actions/e2e_lb
|
|
|
|
run: |
|
|
|
|
kubectl delete -f lb.yml
|
2023-01-03 06:41:46 -05:00
|
|
|
kubectl delete -f ns.yml --timeout=5m
|