Commit graph

50 commits

Author SHA1 Message Date
Yann Hamon
dbcd787256
Do not expose internal CPU profiling option as flag (#136) 2022-10-16 14:06:42 +02:00
Yann Hamon
f68d6ec6ea
Add debug information to help understand failures finding schemas (#133)
* Add debug information to help understand failures finding schemas

* Add debug information to help understand failures finding schemas
2022-10-16 12:28:11 +02:00
Yann Hamon
85b30f8c2a
Improve handling of cmdline errors (#91)
Improve handling of cmdline errors
2022-01-06 12:39:24 +01:00
z0mbix
c3e6205f15
Move version to main package 2021-11-16 17:19:54 +00:00
z0mbix
d63de52458
Add -v to output version number 2021-11-16 15:30:33 +00:00
Yann Hamon
a5a34675c0 Fix usage of -h 2021-03-08 18:14:24 +01:00
Yann Hamon
6308d55977 only read from stdin when no other files/folders given 2021-03-07 23:59:13 +01:00
Christoph Mertz
65968cf540 remove gosimple offences 2021-02-19 17:01:54 +01:00
Yann Hamon
92f8f4593d break down FromFiles for easier testing 2021-01-02 12:52:58 +01:00
Yann Hamon
18927ddf75 cache schemas downloaded over HTTP 2021-01-01 15:49:18 +01:00
Yann Hamon
29a8f4c09e avoid double unmarshalling 2020-12-15 18:35:33 +01:00
Yann Hamon
11a3e8f64f add cpu profiling 2020-12-15 16:27:25 +01:00
Yann Hamon
b524ace87f fix usage of context 2020-11-16 01:01:13 +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
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
f78b65b025 add -ignore-filename-pattern option 2020-11-08 19:57:01 +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
0152d8c209 add tests for command line parsing 2020-11-01 23:18:39 +01:00
Yann Hamon
81e57782f4 migrate openapi2jsonschema to scripts/ 2020-11-01 22:02:03 +01:00
Yann Hamon
0a7f885768 Refactor resource discovery 2020-11-01 20:09:48 +01:00
Yann Hamon
9ee3c5f07f Do not validate when no schema given 2020-11-01 16:43:25 +01:00
Yann Hamon
0c22457919 refactor 2020-11-01 16:35:38 +01:00
Yann Hamon
1bc9283240 refactor 2020-11-01 16:28:32 +01:00
Yann Hamon
939b44e3ca remove last mentions of flag in main 2020-10-31 16:09:53 +01:00
Yann Hamon
377b0ea466 move flag handling to pkg 2020-10-31 15:48:30 +01:00
Yann Hamon
5bd09a483e move flag handling to pkg 2020-10-31 15:47:34 +01:00
Yann Hamon
ea8ecafa38 refactor output 2020-10-31 14:29:13 +01:00
Yann Hamon
7402d0fed8 Add support for passing manifests via stdin 2020-10-31 14:02:15 +01:00
Yann Hamon
b3b16ceccc Improve help 2020-10-18 19:43:43 +02:00
Yann Hamon
9e4d9f9ca4 update readme 2020-10-18 19:03:35 +02:00
Yann Hamon
0e00467469 update readme 2020-10-18 15:55:32 +02:00
Yann Hamon
a83c915a24 rename -k8sversion to -kubernetes-version to stay close to kubeval 2020-10-18 14:46:54 +02:00
Yann Hamon
74f29f742f fix logic 2020-10-18 14:34:47 +02:00
Yann Hamon
c75799e951 Merge branch 'master' of github.com:yannh/kubeconform into minor-fixes-and-tests 2020-10-18 14:30:49 +02:00
Yann Hamon
0949b76f51 rename -regitry to -schema-location, make its syntax more compatible to kubeval 2020-10-18 14:28:19 +02:00
Yann Hamon
490c789632
Merge pull request #7 from cmertz/reorder-imports
reorder imports
2020-10-18 14:10:22 +02:00
Yann Hamon
51732e6a21 count empty files in the number of parsed files in text output 2020-10-18 13:52:40 +02:00
Yann Hamon
52437c00d1 Add resource name to logging 2020-10-18 12:50:52 +02:00
Christoph Mertz
0cffc7994d reorder imports
Reorder imports with `goimports`.
2020-10-18 11:30:20 +02:00
Yann Hamon
07883b8bb4 Update Readme, converter helper script can now reads straight from http 2020-10-17 17:21:33 +02:00
Yann Hamon
5b4686d78c Update README, go.mod 2020-10-17 17:00:34 +02:00
Yann Hamon
86106b9293 update openapi2schema script 2020-10-17 16:54:58 +02:00
Yann Hamon
b4995aa02c Support for CRDs 2020-10-17 15:35:41 +02:00