Skip to content

User-specified connections #60

User-specified connections

User-specified connections #60

name: Validate output netpols on a live cluster
on:
push:
branches:
- main
paths:
- 'tests/**'
pull_request:
paths:
- 'tests/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-test-output:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: ./go.mod
- name: Build
run: make
- name: Bring up a live cluster
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde
- name: Test output on a live cluster
run: |
./bin/net-top -dirpath tests/onlineboutique/kubernetes-manifests.yaml -outputfile netpols.yaml -netpols
kubectl apply -f netpols.yaml