Skip to content

Expose Prometheus-scrapable ports to all pods in the cluster #52

Expose Prometheus-scrapable ports to all pods in the cluster

Expose Prometheus-scrapable ports to all pods in the cluster #52

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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
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