Skip to content

Commit

Permalink
fix: echo joined rules
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
ckotzbauer committed Oct 16, 2021
1 parent 588d466 commit 7bd5f27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion kyverno-test/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion kyverno-test/src/rule-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export const fetchPolicies = async function(): Promise<ClusterPolicy[]> {
}
}

await promisify(writeFile)("/tmp/kyverno-test/rules.yaml", ruleContents.join("---\n"));
const joined = ruleContents.join("---\n");
core.info(joined);
await promisify(writeFile)("/tmp/kyverno-test/rules.yaml", joined);
return policies;
}

Expand Down

0 comments on commit 7bd5f27

Please sign in to comment.