Skip to content

Support for user-specified file with connections to add #51

Support for user-specified file with connections to add

Support for user-specified file with connections to add #51

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@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: ./go.mod
- name: Build
run: make
- name: Bring up a live cluster
uses: helm/kind-action@99576bfa6ddf9a8e612d83b513da5a75875caced
- 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