Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 787 Bytes

File metadata and controls

14 lines (10 loc) · 787 Bytes

If you want to validate your transform functions:

  1. create a sub-directory
  2. create a file named cleaner.yaml containing your Cleaner instance
  3. create a file named matching.yaml containing a resource that matches your Cleaner.ResourcePolicySet.ResourceSelector
  4. create a file named updated.yaml containing the expected resource after Cleaner.ResourcePolicySet.Tranform is executed
  5. run make test

That will run the exact code Cleaner will run in your cluster. If you see no error, your Cleaner instance is correct

This validates both Cleaner.ResourcePolicySet.ResourceSelector and Cleaner.ResourcePolicySet.Transform

If you need to validate your aggregatedSelection function follow instruction in validate_aggregatedselection directory