Skip to content

Latest commit

 

History

History
58 lines (51 loc) · 1.28 KB

updating-validation-rules-version.adoc

File metadata and controls

58 lines (51 loc) · 1.28 KB

Updating the inventory rules version

You must update the inventory rules version each time you update the rules so that the Provider Inventory service detects the changes and triggers the Validation service.

The rules version is recorded in a rules_version.rego file for each provider.

Procedure
  1. Retrieve the current rules version:

    $ GET https://forklift-validation/v1/data/io/konveyor/forklift/<provider>/rules_version (1)
    Example output
    {
       "result": {
           "rules_version": 5
       }
    }
  2. Connect to the terminal of the Validation pod:

    $ {oc} rsh <validation_pod>
  3. Update the rules version in the /usr/share/opa/policies/io/konveyor/forklift/<provider>/rules_version.rego file.

  4. Log out of the Validation pod terminal.

  5. Verify the updated rules version:

    $ GET https://forklift-validation/v1/data/io/konveyor/forklift/<provider>/rules_version (1)
    Example output
    {
       "result": {
           "rules_version": 6
       }
    }