Skip to content

Commit

Permalink
Merge pull request #262 from apinnick/rn-custom-validation
Browse files Browse the repository at this point in the history
Add custom validation rules to RN
  • Loading branch information
apinnick authored Dec 15, 2021
2 parents 922d1ef + e850892 commit 78241c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/modules/about-rego-files.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[id="about-rego-files_{context}"]
= About Rego files

Validation rules are written in link:https://www.openpolicyagent.org/docs/latest/policy-language/[Rego], the OPA native query language. The rules are stored as `.rego` files in the `/usr/share/opa/policies/io/konveyor/forklift/<provider>` directory of the `Validation` pod.
Validation rules are written in link:https://www.openpolicyagent.org/docs/latest/policy-language/[Rego], the Open Policy Agent (OPA) native query language. The rules are stored as `.rego` files in the `/usr/share/opa/policies/io/konveyor/forklift/<provider>` directory of the `Validation` pod.

Each validation rule is defined in a separate `.rego` file and tests for a specific condition. If the condition evaluates as `true`, the rule adds a `{“category”, “label”, “assessment”}` hash to the `concerns`. The `concerns` content is added to the `concerns` key in the inventory record of the VM. The web console displays the content of the `concerns` key for each VM in the provider inventory.

Expand Down
4 changes: 4 additions & 0 deletions documentation/modules/rn-2.2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ You can set the time interval between snapshots taken during the precopy stage o

This release has the following features and improvements:

.Creating validation rules

You can create custom validation rules to check the suitability of VMs for migration. Validation rules are based on the VM attributes collected by the `Provider Inventory` service and written in link:https://www.openpolicyagent.org/docs/latest/policy-language/[Rego], the Open Policy Agent native query language.

.Downloading logs by using the web console

You can download logs for a migration plan or a migrated VM by using the {project-short} web console.
Expand Down

0 comments on commit 78241c1

Please sign in to comment.