tools: Allow setting policy rego file via

environment variable

* Set policy file via env var

* Add restrictive policy file to kata-opa folder

* Change restrictive policy file name

* Change relative default path location

* Add license headers

Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
This commit is contained in:
ms-mahuber
2023-12-20 09:19:06 -08:00
committed by Saul Paredes
parent fc4357f642
commit ddff762782
5 changed files with 33 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ else
K8S_TEST_POLICY_FILES=( \
"allow-all.rego" \
"allow-all-except-exec-process.rego" \
"allow-set-policy.rego" \
)
fi