Skip to content

Commit

Permalink
improve readability of example output
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfenwick committed Jul 13, 2022
1 parent a135d68 commit 9594640
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -euo pipefail
set -xv

# run all 5
printf "\n\n********************** run all 5 modes **************************\n\n"
go run ../cmd/cyclonus/main.go analyze \
--use-example-policies \
--mode explain,lint,query-target,query-traffic,probe \
Expand All @@ -12,29 +13,34 @@ go run ../cmd/cyclonus/main.go analyze \
--probe-path ./probe-example.json

# run just the explainer
printf "\n\n********************** run just the explainer **************************\n\n"
go run ../cmd/cyclonus/main.go analyze \
--mode explain \
--policy-path ../networkpolicies/simple-example/

# run just the targets
printf "\n\n********************** run just the targets **************************\n\n"
go run ../cmd/cyclonus/main.go analyze \
--mode query-target \
--policy-path ../networkpolicies/simple-example/ \
--target-pod-path ./targets.json

# run just the traffic
printf "\n\n********************** run just the traffic **************************\n\n"
go run ../cmd/cyclonus/main.go analyze \
--mode query-traffic \
--policy-path ../networkpolicies/simple-example/ \
--traffic-path ./traffic.json

# run just the probe
printf "\n\n********************** run just the probe **************************\n\n"
go run ../cmd/cyclonus/main.go analyze \
--mode probe \
--policy-path ../networkpolicies/simple-example/ \
--probe-path ./probe.json

# run just the linter
printf "\n\n********************** run just the linter **************************\n\n"
go run ../cmd/cyclonus/main.go analyze \
--mode lint \
--policy-path ../networkpolicies/simple-example
--policy-path ../networkpolicies/simple-example

0 comments on commit 9594640

Please sign in to comment.