Commit graph

216 commits

Author SHA1 Message Date
Maxime Brunet
87183acf5f
scripts: Fix creation of schema from multi-version CRD 2020-12-29 12:10:11 -08:00
Yann Hamon
9a56fc4176 Indicate field on validation error 2020-12-28 13:03:36 +01:00
Yann Hamon
f6e6f7584c support for multi-document yaml in openapi2jsonschema 2020-12-28 11:08:05 +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
532f07ed75 Merge branch 'master' of github.com:yannh/kubeconform into perf 2020-12-15 22:09:24 +01:00
Yann Hamon
69e2fc8ba9 Add TAP header 2020-12-15 22:09:07 +01:00
Yann Hamon
384f3266d1
Merge pull request #20 from yannh/perf
Improvements in tap output
2020-12-15 21:59:40 +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
706488cafb
Merge pull request #19 from yannh/perf
Performance improvement
2020-12-15 20:01:02 +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
9b793c2533 update readme 2020-12-15 13:23:38 +01:00
Yann Hamon
8c6e855239 support tap output 2020-12-15 13:22:52 +01:00
Yann Hamon
b2d05f0ed2
Merge pull request #16 from yannh/add-tests
Add tests
2020-11-29 16:13:29 +01:00
Yann Hamon
48207c131e check for race conditions when running tests 2020-11-29 16:11:04 +01:00
Yann Hamon
43b5c5c152 add tests to DownloadSchema 2020-11-29 16:09:12 +01:00
Yann Hamon
b524ace87f fix usage of context 2020-11-16 01:01:13 +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
d0ac45222c sort tests 2020-11-15 20:27:44 +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
7604a7aa7d add another link to pkg.go.dev in readme 2020-11-15 10:49:37 +01:00
Yann Hamon
36f9afb7ef fix goreleaser 2020-11-15 10:38:57 +01:00
Yann Hamon
dbe94f78d4 update badge 2020-11-15 10:33:34 +01:00
Yann Hamon
abaa1f0640 Add link to godoc for validator pkg 2020-11-15 10:28:19 +01:00
Yann Hamon
22e82c4922 Properly close streams after processing them 2020-11-15 10:19:09 +01:00
Yann Hamon
6f2fe33bc0 better example 2020-11-15 10:06:42 +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
9d91ec4aa9
Merge pull request #15 from yannh/stable-api
Stable api
2020-11-14 15:59:44 +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