helm test --logs all (default) // output logs of all pods
helm test --logs failed // only output logs of failed pods
helm test --logs succeeded // only output logs of succeeded pods
Signed-off-by: Zhenghao Lou <rhzx3519@gmail.com>
@ -90,7 +96,7 @@ func newReleaseTestCmd(cfg *action.Configuration, out io.Writer) *cobra.Command
f:=cmd.Flags()
f:=cmd.Flags()
f.DurationVar(&client.Timeout,"timeout",300*time.Second,"time to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.DurationVar(&client.Timeout,"timeout",300*time.Second,"time to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&outputLogs,"logs",false,"dump the logs from test pods (this runs after all tests are complete, but before any cleanup)")
f.StringVar(&outputLogs,"logs","","dump the logs from test pods (this runs after all tests are complete, but before any cleanup), options include [\"all\", \"succeeded\", \"failed\"]")
f.StringSliceVar(&filter,"filter",[]string{},"specify tests by attribute (currently \"name\") using attribute=value syntax or '!attribute=value' to exclude a test (can specify multiple or separate values with commas: name=test1,name=test2)")
f.StringSliceVar(&filter,"filter",[]string{},"specify tests by attribute (currently \"name\") using attribute=value syntax or '!attribute=value' to exclude a test (can specify multiple or separate values with commas: name=test1,name=test2)")