Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tools/genpolicy/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
layers_cache
layers-cache.json
src/version.rs
4 changes: 2 additions & 2 deletions src/tools/genpolicy/update_policy_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def timeRunCmd(arg):

for file in default_yamls + no_policy + needs_containerd_pull:
rego_file = "/tmp/" + Path(os.path.basename(file)).stem + "-rego.txt"
cmd = f"{genpolicy_path} -r -d -y {os.path.join(file_base_path, file)} > {rego_file}"
cmd = f"{genpolicy_path} -r -d -u -y {os.path.join(file_base_path, file)} > {rego_file}"
futures.append(executor.submit(timeRunCmd, cmd))

for file in silently_ignored:
rego_file = "/tmp/" + Path(os.path.basename(file)).stem + "-rego.txt"
cmd = f"{genpolicy_path} -r -d -s -y {os.path.join(file_base_path, file)} > {rego_file}"
cmd = f"{genpolicy_path} -r -d -u -s -y {os.path.join(file_base_path, file)} > {rego_file}"
futures.append(executor.submit(timeRunCmd, cmd))

for future in concurrent.futures.as_completed(futures):
Expand Down