-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cmd): Add validate subcommand to opm cmd to validate config files #618
feat(cmd): Add validate subcommand to opm cmd to validate config files #618
Conversation
Codecov Report
@@ Coverage Diff @@
## master #618 +/- ##
==========================================
- Coverage 52.16% 52.10% -0.07%
==========================================
Files 81 81
Lines 6397 6403 +6
==========================================
- Hits 3337 3336 -1
- Misses 2403 2409 +6
- Partials 657 658 +1
Continue to review full report at Codecov.
|
663ea66
to
29720d7
Compare
1bfdc95
to
81bea83
Compare
81bea83
to
dd63253
Compare
LGTM but holding for someone that's more up-to-date on this effort. /lgtm |
Folks, please feel free to lgtm and approve but keep the hold in for now. We try to line up the 3 config PRs for merging today and this one should go last to avoid unnecessary rebase. Thanks. |
@dinhxuanvu: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dinhxuanvu, ecordell The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@dinhxuanvu: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Validate declarative config (JSON) files in a given directory. The validation is using the validation library from declcfg, model and property packages. Signed-off-by: Vu Dinh <[email protected]>
dd63253
to
43bdcdd
Compare
/hold cancel |
1. Missing `defaultChannel` doesn’t get caught and error out as an empty channel issue which is incorrect. 2. Missing `package` property will result out of bound error 3. Bundles without channel is allowed which will lead to orphaned bundles 4. Bundle without a bundle image is valid when it shouldn’t be. Bundle must either have bundle image or bundle data (objects). Signed-off-by: Vu Dinh <[email protected]>
43bdcdd
to
a4520ff
Compare
/lgtm |
/lgtm |
@joelanford: /override requires a failed status context to operate on.
Only the following contexts were expected:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/override codecov/patch |
Hmm, it looks like it's possible to override but you may need higher permissions: #611 (comment)? |
@timflannagan: /override requires a failed status context to operate on.
Only the following contexts were expected:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/override codecov/project |
@dinhxuanvu: /override requires a failed status context to operate on.
Only the following contexts were expected:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The PR passed all tests so manually merge this to bypass the codecov. |
Description of the change:
Validate declarative config (JSON) files in a given directory. The validation
is using the validation library from declcfg, model and property packages.
Signed-off-by: Vu Dinh [email protected]
Motivation for the change:
Allow users to validate their config files.
Reviewer Checklist
/docs