-
Notifications
You must be signed in to change notification settings - Fork 1.8k
operator-sdk bundle validate should have an option to turn warnings into errors #5544
Copy link
Copy link
Closed
Closed
Copy link
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Feature Request
operator-sdk bundle validate --permissive=falseThe documentation advises bundle authors to check their bundle using
operator-sdk bundle validateand that:-- https://github.com/operator-framework/community-operators/blob/1591b5e18d47129ed14e83ac2f9832d6cb41bb40/docs/testing-operators.md#L234-L250
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
There is some discussion about this in Slack here: https://kubernetes.slack.com/archives/C017UU45SHL/p1644400918179439
/cc @estroz @camilamacedo86