Skip to content

Commit

Permalink
istioctl analyze: do not error if the threshold is warning (istio#27846)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamsher Ansari authored Oct 9, 2020
1 parent 239d5d7 commit e403231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions istioctl/cmd/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func (f FileParseError) Error() string {
var (
listAnalyzers bool
useKube bool
failureThreshold = formatting.MessageThreshold{diag.Warning} // messages at least this level will generate an error exit code
outputThreshold = formatting.MessageThreshold{diag.Info} // messages at least this level will be included in the output
failureThreshold = formatting.MessageThreshold{diag.Error} // messages at least this level will generate an error exit code
outputThreshold = formatting.MessageThreshold{diag.Info} // messages at least this level will be included in the output
colorize bool
msgOutputFormat string
meshCfgFile string
Expand Down
2 changes: 1 addition & 1 deletion istioctl/cmd/analyze_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestNoErrorIfMessageLevelsBelowThreshold(t *testing.T) {
"",
),
diag.NewMessage(
diag.NewMessageType(diag.Info, "A1", "Template: %q"),
diag.NewMessageType(diag.Warning, "A1", "Template: %q"),
nil,
"",
),
Expand Down

0 comments on commit e403231

Please sign in to comment.