Commit graph

360 commits

Author SHA1 Message Date
Yann Hamon
682ca5c9e2 Use httploader to validate HTTP references 2023-01-23 12:52:02 +01:00
Yann Hamon
153d5f87fb Fixes 2023-01-22 20:37:40 +01:00
Yann Hamon
30285e7e2c Add test for http reference 2023-01-22 20:35:41 +01:00
Yann Hamon
35c74cf1ad fix debug line 2023-01-22 20:28:30 +01:00
Yann Hamon
b2be23b2ce rm gojsonschema 2023-01-22 19:13:35 +01:00
Yann Hamon
320b707ce6 rm gojsonschema 2023-01-22 18:58:13 +01:00
Yann Hamon
b557e7cbf9 fix tests 2023-01-22 18:49:36 +01:00
Yann Hamon
7c6bf57296 fix tests 2023-01-22 18:36:09 +01:00
Yann Hamon
bebab866e6 Track schema url/path 2023-01-22 18:34:03 +01:00
Yann Hamon
5f9df6d080 Try migrating to new JSON validation library 2023-01-22 18:22:39 +01:00
Yann Hamon
ba844cad0a Try migrating to new JSON validation library 2023-01-22 18:15:22 +01:00
Jeffrey Ying
752a33eaeb
Fix typo in readme (#153) 2022-12-02 19:34:19 +01:00
Yann Hamon
33cdbf16a4 Update LICENSE 2022-11-28 10:02:25 +01:00
Eyar Zilberman
f94844183f
update anchor links in readme (#150)
* add constructor to handle equal sign (=)

Equal sign (=) was not parsed properly by pyyaml.
Added constructor to parse equal sign as string.
Related issue: https://github.com/yannh/kubeconform/issues/103

* Update Readme.md

* Update Readme.md
2022-11-10 13:28:58 +01:00
Eyar Zilberman
9d34445328
update readme structure and info (#149)
* add constructor to handle equal sign (=)

Equal sign (=) was not parsed properly by pyyaml.
Added constructor to parse equal sign as string.
Related issue: https://github.com/yannh/kubeconform/issues/103

* Update Readme.md
2022-11-10 12:36:28 +01:00
Yann Hamon
a31707ca58
Add opencontainers label (#138) 2022-10-16 15:50:02 +02:00
Yann Hamon
46b7622a08
Add informations how to use Kubeconform in Gitlab-CI (#139) 2022-10-16 15:46:22 +02:00
Andrea Tosatto
d8e348a597
Allow to skip resources using the GVK notation (#92)
* Allow to skip resources using the GVK notation
* Update flags description, add integration tests and update readme

Co-authored-by: Yann Hamon <yann@mandragor.org>
2022-10-16 14:59:48 +02:00
Yann Hamon
466ec73ed7
Update goreleaser (#137)
* Update goreleaser
2022-10-16 14:14:09 +02:00
Yann Hamon
dbcd787256
Do not expose internal CPU profiling option as flag (#136) 2022-10-16 14:06:42 +02:00
Yann Hamon
f5338b07f9
Validate JUnit output against Jenkins JUnit XSD (#134)
* Validate JUnit output against Jenkins JUnix XSD

* Add missing Jenkins JUnit XSD

* Add time to TestCase for #127
2022-10-16 13:52:04 +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
3cb76bc5e6 Update fixture file to use no hash function 2022-09-02 10:39:16 +02:00
John-Michael Mulesa
5cbbd1a898
Upgrade hash to sha256. (#126) 2022-09-02 10:28:07 +02:00
Thomas Güttler
321cc0ea1d
remove link to dead project (#125)
the old repo has not updates since two years. It looks dead.
2022-08-31 09:08:01 +02:00
hadar-co
5e63bc5ad7
add {{ .Group }} variable to schema location options (#120) 2022-07-16 14:13:17 +02:00
Bill Franklin
9a6fff13cb
Forbid duplicate keys in strict mode (#121)
* Forbid duplicate keys in strict mode

Prevents specifying duplicate keys using
UnmarshallStrict: https://pkg.go.dev/gopkg.in/yaml.v2#UnmarshalStrict

* Add acceptance tests for duplicated properties
2022-07-15 14:23:10 +02:00
Calle Pettersson
7bf1e01dec
fix: change flag parse error handling to return errors instead of exiting (#107)
* fix: change flag parse error handling to return errors instead of exiting

Having ExitOnError in combination with SetOutput to a buffer instead of
stdout/stderr means flags.Parse output is swallowed and kubeconform silently
exits directly with exit code 2 instead of returning the error.

Setting ContinueOnError instead returns the error, and writes usage help to
the buffer, so error handling code in main is reached.

* Add test for parsing incorrect flags

Co-authored-by: Yann Hamon <yann@mandragor.org>
2022-06-19 18:38:52 +02:00
Damian Kula
014cbf754f
Adds info about installation via built in Go package manger (#116) 2022-06-19 18:23:23 +02:00
Andrzej Theodorko
f8ab9ae49e
Fix grammar in README.md (#114) 2022-06-03 13:11:11 +02:00
Eyar Zilberman
b5f34caa70
add constructor to handle equal sign (=) (#104)
Equal sign (=) was not parsed properly by pyyaml.
Added constructor to parse equal sign as string.
Related issue: https://github.com/yannh/kubeconform/issues/103
2022-04-06 09:12:48 +02:00
Carlos Sanchez
932b35d71f
chore: print the url of failed download (#96) 2022-02-22 23:59:39 +01:00
Yann Hamon
c5f7348af8 remove accidentally commited binary 2022-02-07 01:20:38 +01:00
Yann Hamon
85b30f8c2a
Improve handling of cmdline errors (#91)
Improve handling of cmdline errors
2022-01-06 12:39:24 +01:00
Yann Hamon
607c90a0a9 Minor css updates 2021-12-20 00:43:36 +01:00
Yann Hamon
d10c9bde67 Update website 2021-12-19 23:46:04 +01:00
Yann Hamon
2b3139b1db Add cname to website 2021-12-19 22:57:50 +01:00
Yann Hamon
3a3d05b27c Publish site 2021-12-19 22:53:04 +01:00
Yann Hamon
6c1fa513e9 Fixes acceptance test with new TAP output 2021-12-19 01:15:31 +01:00
Yann Hamon
048ccf125e
Merge pull request #87 from eyarz/master
add hero image to readme
2021-12-18 23:51:01 +01:00
Yann Hamon
c32562e742
Merge pull request #88 from maxbrunet/feature/output-tap/qualified-name
feat(output/tap): Output qualified resource name
2021-12-18 23:49:27 +01:00
Maxime Brunet
ff2ab3d770
feat(output/tap): Output qualified resource name 2021-12-17 19:18:55 -08:00
Eyar Zilberman
e38ff8efd4
add horizontal line 2021-12-13 22:51:06 +02:00
Eyar Zilberman
836b6e5b14
set hero image width 2021-12-13 22:48:21 +02:00
Eyar Zilberman
fe79a7cfff
Merge branch 'yannh:master' into master 2021-12-13 22:45:35 +02:00
Yann Hamon
c1b3e93a75
Merge pull request #86 from PaytmLabs/hotfix/scripts/root-additionalProperties
scripts: Optionally disallow additionalProperties at the root
2021-12-13 00:03:38 +01:00
Maxime Brunet
30528c5671
scripts: Add tests for options 2021-12-12 11:44:09 -08:00
Maxime Brunet
67a73a9315
scripts: Optionally disallow additionalProperties at the root 2021-12-11 11:40:06 -08:00
Eyar Zilberman
c7894baed6
Update Readme.md 2021-11-18 14:02:43 +02:00
Yann Hamon
f2e47c3596
Merge pull request #83 from z0mbix/master
Add -v flag to output version
2021-11-16 18:21:53 +01:00