Commit graph

364 commits

Author SHA1 Message Date
Juan Ignacio Donoso
4370a4c727
Fix anchored link on Readme.md
The in page link to the CustomResourceDefinition (CRD) Support section is not working
2023-05-23 17:58:34 -04:00
Yann Hamon
c1a2c159de Revert "Add support for Arm64 Docker images (#201)"
This reverts commit 65cfe7e16e.
2023-05-14 12:52:13 +02:00
Yann Hamon
65cfe7e16e Add support for Arm64 Docker images (#201) 2023-05-14 12:51:53 +02:00
Yann Hamon
ce2f6de185 Move cfg parsing out of realmain, rename realmain to kubeconform 2023-04-23 14:34:25 +02:00
Yann Hamon
ad935b7e32 Add JSON/YAML annotations to Config struct
Co-authored-by: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com>
2023-04-23 13:55:09 +02:00
Yann Hamon
d038bf8840 Do not hardcode output stream in pkg/output
Co-authored-by: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com>
2023-04-23 13:39:43 +02:00
Yann Hamon
8bc9f42f39
Add support for "pretty" output (#195)
* feat: add pretty output format

---------

Co-authored-by: William Yardley <wyardley@users.noreply.github.com>
2023-04-22 18:41:51 +02:00
Mateusz Łoskot
9294e94a8d
docs: Add winget as installation method on Windows (#192)
The kubeconform package has been accepted to winget,
see https://github.com/microsoft/winget-pkgs/pull/101691
2023-04-13 09:56:49 +02:00
Benjamin Muschko
16d52804d4
Fix CI badge image (#184)
I guess the name of the CI build has been changed which led to a broken image.
2023-03-28 18:53:49 +02:00
Aleksey Levenstein
e3bb34851d
fix: expose error instance path instead of schema path (#177) 2023-02-27 16:16:00 +01:00
w7089
aaecabe0b7
support disabling ssl validation in openapi2jsonschema.py (#167)
* support disabling ssl validation in openapi2jsonschema.py
* added acceptance tests for disable ssl feature
* speed up bats docker build
2023-02-26 12:33:54 +01:00
Yann Hamon
563e1db94c
Try to expose JSON paths (#173)
* Try to expose JSON paths
* update validationErrors format in json output
* Add test to JSON output with validationError
2023-02-26 12:32:51 +01:00
Rick
9860cde144
feat: support to set an alternative image owner (#164)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
2023-01-25 01:26:53 +01:00
Yann Hamon
ee7c498580
Migrate to santhosh-tekuri/jsonschema (#168)
* Migrate to santhosh-tekuri/jsonschema
2023-01-23 19:22:20 +01:00
Jiri Tyr
84afe70659
Documenting Helm support via 3rd party repo (#158) 2022-12-27 17:21:12 +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