in src/kubeconform/kubeconform.ts [20:37]
export async function kubeconformLint(
manifests: string[],
kubeconformOptions: string
) {
const toolPath =
(await io.which(TOOL_NAME, false)) || (await downloadKubeconform())
for (const manifest of manifests) {
const toolRunner = new ToolRunner(toolPath, [
kubeconformOptions,
manifest
])
const code = await toolRunner.exec()
if (code != 0) {
throw Error('Your manifest has errors')
}
}
}