forked from kubernetes-retired/kpng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodd.conf
32 lines (26 loc) · 1.12 KB
/
modd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
modd.conf {}
**/*.go go.mod go.sum {
prep: mkdir -p dist
prep: go test ./...
prep: go build -trimpath -o dist ./cmd/... ./examples/...
}
dist/fake-proxy {
daemon: ./dist/fake-proxy --listen unix:///tmp/kube-proxy.sock
}
cmd/kube-proxy2/*.go pkg/**/*.go {
#daemon: ./dist/kube-proxy2 --listen unix:///tmp/kube-proxy.sock --trace trace.out --kubeconfig "$KUBECONFIG" --master "$KUBE_MASTER" -v=2 >dist/stdout.log
#daemon: ./dist/print-state --target unix:///tmp/kube-proxy.sock
#daemon: ./dist/iptables-extip --target unix:///tmp/kube-proxy.sock --dry-run
}
cmd/kube-proxy-backend-torture/*.go {
#daemon: ./dist/kube-proxy-backend-torture --listen unix:///tmp/kube-proxy.sock --sleep 1s 0:0 5:2 # 1000:100 100000:1 1:100000
}
cmd/kube-proxy-nftables/*.go {
prep: go test ./cmd/kube-proxy-nftables/...
prep: sudo ip netns add kpnft ||true
prep: sudo killall kube-proxy-nftables
#daemon: sudo ip netns exec kpnft ./dist/kube-proxy-nftables --target unix:///tmp/kube-proxy.sock
}
**/*.proto {
prep: for mod in @mods; do protoc -I ./ --go_out=paths=source_relative:. --go-grpc_out=paths=source_relative:. $mod; done
}