File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
internal/cmd/operator-sdk/bundle/validate Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ # entries is a list of entries to include in
2
+ # release notes and/or the migration guide
3
+ entries :
4
+ - description : >
5
+ For `operator-sdk bundle validate`: Fix a bug that would make the command exit with a 0 exit code even if there
6
+ were validation failures.
7
+ kind: "bugfix"
8
+ breaking: false
Original file line number Diff line number Diff line change @@ -159,10 +159,11 @@ func NewCmd() *cobra.Command {
159
159
}
160
160
161
161
// if a test failed don't print that it was successful
162
- if ! failed {
163
- logger . Info ( "All validation tests have completed successfully" )
162
+ if failed {
163
+ os . Exit ( 1 )
164
164
}
165
165
166
+ logger .Info ("All validation tests have completed successfully" )
166
167
return nil
167
168
},
168
169
}
You can’t perform that action at this time.
0 commit comments