clover / gatekeeper-conftest

conftest plugin that transforms k8s input object to be compatible with gatekeeper policies
Apache License 2.0
13 stars 2 forks source link

When passing yaml file to conftest gatekeeper, that is bigger than 10kB, it returns an error #3

Open richardfojta opened 1 year ago

richardfojta commented 1 year ago

Error: read yaml document: short buffer

suspected source https://github.com/clover/gatekeeper-conftest/blob/949f3730a1e537fcbad751954e2bdb6d8f87b866/cmd/root.go#L143

richardfojta commented 1 year ago

it's being solved by a fork https://github.com/nerzhul/gatekeeper-conftest/commit/6c9fd1b0047f7f8030f744ced3ea5531880d570f