boz / kail

kubernetes log viewer
MIT License
1.99k stars 93 forks source link

feat: regex filter pod name #154

Closed Forget-C closed 10 months ago

Forget-C commented 10 months ago

Regular expression to filter podname

Usage: --regex "volcano-controllers.*"

kail|master⚡ ⇒ go run cmd/kail/main.go --regex "volcano-controllers.*"
volcano-system/volcano-controllers-56588b7df6-stzxn[volcano-controllers]: 2024/01/19 06:05:52 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
volcano-system/volcano-controllers-56588b7df6-stzxn[volcano-controllers]: I0119 06:05:52.249537       1 flags.go:57] FLAG: --add-dir-header="false"
volcano-system/volcano-controllers-56588b7df6-stzxn[volcano-controllers]: I0119 06:05:52.249702       1 flags.go:57] FLAG: --alsologtostderr="false"
volcano-system/volcano-controllers-56588b7df6-stzxn[volcano-controllers]: I0119 06:05:52.249793       1 flags.go:57] FLAG: --ca-cert-file=""
volcano-system/volcano-controllers-56588b7df6-stzxn[volcano-controllers]: I0119 06:05:52.249836       1 flags.go:57] FLAG: --enable-healthz="true"

Issue:

135 Support regular expression or auto completion?

I think this requirement is reasonable, and some scenes cannot be effectively filtered through leables, namesapce, etc.