Commit graph

105 commits

Author SHA1 Message Date
Yann Hamon
9a56fc4176 Indicate field on validation error 2020-12-28 13:03:36 +01:00
Yann Hamon
509ad8e997 add test for missing apiVersion - better error message 2020-12-23 18:25:46 +01:00
Yann Hamon
031f83cbde linting 2020-12-15 22:20:02 +01:00
Yann Hamon
0bbee68c49 update verbose desc 2020-12-15 22:12:41 +01:00
Yann Hamon
69e2fc8ba9 Add TAP header 2020-12-15 22:09:07 +01:00
Yann Hamon
07dec90112 tap plan can be at the end, that way we can stream the output and not buffer 2020-12-15 21:54:44 +01:00
Yann Hamon
c5aa8e6da3 fix closing files 2020-12-15 19:36:22 +01:00
Yann Hamon
29a8f4c09e avoid double unmarshalling 2020-12-15 18:35:33 +01:00
Yann Hamon
4afe9b1977 reduce allocations done when splitting 2020-12-15 17:04:44 +01:00
Yann Hamon
11a3e8f64f add cpu profiling 2020-12-15 16:27:25 +01:00
Yann Hamon
a71d1eb59b
Merge pull request #18 from yannh/add-tap-support
Add tap support
2020-12-15 13:26:26 +01:00
Yann Hamon
8c6e855239 support tap output 2020-12-15 13:22:52 +01:00
Yann Hamon
43b5c5c152 add tests to DownloadSchema 2020-11-29 16:09:12 +01:00
Yann Hamon
f63d329742 throw error when file with key/values is missing a Kind, add acc test 2020-11-15 23:44:15 +01:00
Yann Hamon
cafdb09f6f comment 2020-11-15 20:25:16 +01:00
Yann Hamon
651d3b2c50 fail early when a broken -schema-location template is given 2020-11-15 20:23:37 +01:00
Yann Hamon
905f5e7417 set max resource size 2020-11-15 17:08:45 +01:00
Yann Hamon
7d9bb98a35 increase max size of k8s resource 2020-11-15 17:05:11 +01:00
Yann Hamon
b33767a477 fix acc tests 2020-11-15 16:24:27 +01:00
Yann Hamon
4ae74305d1 Updated names for schema-location vars, added documentation, updated openapi2jsonschema 2020-11-15 16:19:49 +01:00
Yann Hamon
300b571c33 linting / refactor 2020-11-15 12:12:37 +01:00
Yann Hamon
22e82c4922 Properly close streams after processing them 2020-11-15 10:19:09 +01:00
Yann Hamon
4e96b44a8b Add example how to use kubeconform as a library 2020-11-15 10:01:36 +01:00
Yann Hamon
4672ded043 only expose interfac 2020-11-14 16:23:33 +01:00
Yann Hamon
9936e43d47 opts should not be a pointer 2020-11-14 15:57:39 +01:00
Yann Hamon
649c2ca4d6 refactor validator pkg so it can be usable in a third party app 2020-11-14 15:54:45 +01:00
Yann Hamon
94f8e9e631 fix race condition when shutting down 2020-11-11 22:50:59 +01:00
Yann Hamon
3a2d4705f5 better yaml splitting - not perfect but similar to k8s - fix path logging 2020-11-08 23:48:02 +01:00
Yann Hamon
d64a376779 do not buffer all of stdin before starting to process resources 2020-11-08 22:54:41 +01:00
Yann Hamon
4b16128b75 Add comments to most exported functions/types 2020-11-08 22:35:17 +01:00
Yann Hamon
f78b65b025 add -ignore-filename-pattern option 2020-11-08 19:57:01 +01:00
Yann Hamon
44710f9053 cache http client in http registry 2020-11-08 16:50:21 +01:00
Yann Hamon
9d7a79b253 renaming 2020-11-08 16:46:01 +01:00
Yann Hamon
207371cbc2 fix behaviour when passing erroneous flags 2020-11-08 16:33:31 +01:00
Yann Hamon
49ad2fc375 make http part of registry class 2020-11-08 16:25:45 +01:00
Yann Hamon
45040c3fe2 rename HTTP error 2020-11-08 16:21:48 +01:00
Yann Hamon
ec56304efd add -insecure-skip-tls-verify 2020-11-08 13:06:21 +01:00
Yann Hamon
b162c5b6f5 Add support for -reject and update README 2020-11-08 10:36:53 +01:00
Yann Hamon
358f145023 Add support for -exit-on-error 2020-11-08 10:08:14 +01:00
Yann Hamon
dfb80055fe use different pattern for processResults 2020-11-02 00:23:03 +01:00
Yann Hamon
81c097f1bb add back json output tests 2020-11-02 00:03:03 +01:00
Yann Hamon
1b4bc79841 add back text output tests cases 2020-11-01 23:57:44 +01:00
Yann Hamon
99bc85d016 rename signature.go -> resource.go 2020-11-01 23:32:52 +01:00
Yann Hamon
6911b9cf30 Add another flags parsing test to validate all flags 2020-11-01 23:29:50 +01:00
Yann Hamon
0152d8c209 add tests for command line parsing 2020-11-01 23:18:39 +01:00
Yann Hamon
51e5f38430 Add unit tests for reading resources from an io.Reader 2020-11-01 22:41:18 +01:00
Yann Hamon
423b9536da Refactor resource discovery 2020-11-01 20:10:03 +01:00
Yann Hamon
0a7f885768 Refactor resource discovery 2020-11-01 20:09:48 +01:00
Yann Hamon
2391d82281 Factor out isYaml 2020-11-01 16:50:16 +01:00
Yann Hamon
0c22457919 refactor 2020-11-01 16:35:38 +01:00