Skip to content

Fix a bug in setting labels for ReplicaSet pods #36

Fix a bug in setting labels for ReplicaSet pods

Fix a bug in setting labels for ReplicaSet pods #36

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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Set up Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with:
go-version: 1.18
- name: Build
run: make
- name: Bring up a live cluster
uses: helm/kind-action@fa81e57adff234b2908110485695db0f181f3c67
- 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