Robert Rose
c691d7e07a
Follow top-level directory symlinks when finding resources
...
`filepath.Walk` doesn't follow symbolic links, so kubeconform reported
zero found files when pointed to a directory symlink. This adds support
to follow top-level links, nested links will still not be followed.
2025-06-11 15:38:33 +02:00
Yann Hamon
ab4745ddf0
Small clean-up
2021-09-26 22:55:01 +02:00
Yann Hamon
b5c823d6b5
Also read up to 256MB from stdin
2021-09-26 17:45:27 +02:00
Yann Hamon
8bb87b9a63
Allow bufio.Scanner to resize buffer when reading large files
2021-09-26 17:27:20 +02:00
Yann Hamon
4eb75860d9
support for lists
2021-07-03 15:49:37 +02:00
Christoph Mertz
65968cf540
remove gosimple offences
2021-02-19 17:01:54 +01:00
Yann Hamon
c1f0e9010d
add tests for yaml scanning
2021-01-02 14:06:13 +01:00
Yann Hamon
92f8f4593d
break down FromFiles for easier testing
2021-01-02 12:52:58 +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
905f5e7417
set max resource size
2020-11-15 17:08: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
f78b65b025
add -ignore-filename-pattern option
2020-11-08 19:57:01 +01:00
Yann Hamon
358f145023
Add support for -exit-on-error
2020-11-08 10:08:14 +01:00
Yann Hamon
423b9536da
Refactor resource discovery
2020-11-01 20:10:03 +01:00