Skip to content

Upgrade to K8s API 0.28 #39

Upgrade to K8s API 0.28

Upgrade to K8s API 0.28 #39

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@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 'stable'
- name: Build
run: make
- name: Bring up a live cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140
- 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