-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Feature Request
operator-sdk bundle validate --permissive=false
The documentation advises bundle authors to check their bundle using operator-sdk bundle validate
and that:
Any warnings here might turn into failing pipeline tests here. Please correct all issues displayed. A list of fields that are scanned can also be reviewed with this list.
So it would be nice if there was a way to run the tool in CI pipelines and have it fail if there are warnings,
so that the problems can be fixed proactively.
And indeed there is a comment in the code to this effect:
operator-sdk/internal/cmd/operator-sdk/bundle/validate/validate.go
Lines 71 to 72 in 836a088
// TODO: add a "permissive" flag to toggle whether warnings also cause a non-zero | |
// exit code to be returned (true by default). |
There is some discussion about this in Slack here: https://kubernetes.slack.com/archives/C017UU45SHL/p1644400918179439