This project is mirrored from https://gitee.com/mirrors/Datree.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 16 May, 2022 5 commits
  2. 15 May, 2022 6 commits
  3. 12 May, 2022 2 commits
  4. 11 May, 2022 5 commits
  5. 10 May, 2022 1 commit
    • Roy Hadad's avatar
      fix: --policy-config validation: add failure location, accept null array (#607) · 74ef6214
      Roy Hadad authored
      * refactor: add schema for json schemas
      
      * test: add test case for custom rules null
      
      * fix: allow customRules to be null
      
      * test: add test case for missing api verison
      
      * feat: add instance path in --policy-config error messages
      
      * test: add more test cases
      
      * fix: allow for policyRules to be null
      
      * fix: allow for policyRules to be null
      
      * test: add test case for wrong apiVersion
      
      * test: add test case customRuleMissingIdentifier
      
      * test: add test case customRuleMissingIdentifier
      
      * test: add test case customRuleMissingName
      
      * test: add test case customRuleMissingDefaultMessageOnFailure
      
      * wip: schema validation
      
      * fix: remove check of json schema validity, it's out of scope
      
      * refactor: fix goimports
      74ef6214
  6. 08 May, 2022 1 commit
  7. 04 May, 2022 1 commit
  8. 03 May, 2022 2 commits
    • shmuelsa's avatar
      feat: add evaluation duration (#596) · 8f624877
      shmuelsa authored
      8f624877
    • Naor Peled's avatar
      test: add a suite to validate pkg/policy/defaultRules.yaml (#579) · 1b18da6e
      Naor Peled authored
      
      * wip
      
      * wip
      
      * wip
      
      * revert go.mod change
      
      * revert go.sum change
      
      * revert go.sum change
      
      * changed error message text
      
      * removed unnecessary message
      
      * added unique field to uniqueName
      
      * added uniqueName uniqueness validation
      
      * removed redundant unique json schema property
      
      * cleaned naming
      
      * cleaned naming
      
      * added ID uniqueness test
      
      * cleaned the code a bit
      
      * improved naming
      
      * removed unneeded space
      
      * move file path to const
      
      * fixed lint issues
      
      * cleaned a bit
      
      * cleaned a bit
      
      * improved naming
      
      * CR: changed  map[string][]interface{}{} to nil
      
      * CR: uncapitzled error msg
      
      * fixed json schema
      
      * refactor: update validation to the new validation code
      
      * renamed to convertYamlFileToMap
      
      * fixed validation functions
      
      * added TestMain
      
      * resolved lint errors
      
      * adjusted naming
      
      * extracted reflection logic
      
      * CR
      
      * refactor: revert go.mod and go.sum
      
      * refactor: revert go.sum
      Co-authored-by: default avatarteselil <tzlil@datree.com>
      1b18da6e
  9. 02 May, 2022 4 commits
  10. 01 May, 2022 2 commits
  11. 28 Apr, 2022 2 commits
    • Hilla Shahrabani's avatar
      docs: fix typo · 7d46f3e4
      Hilla Shahrabani authored
      7d46f3e4
    • Roy Hadad's avatar
      feat: print files that skipped k8s validation (#589) · 4587ddb7
      Roy Hadad authored
      * feat: first working version, show skipped files regarding k8s validation
      
      * test: fix failing tests
      
      * style: fix lint
      
      * docs: add variations.yaml file and revert service.yaml
      
      * refactor: add a check in validateResource for isValid before adding the skip warning, this doesn't effect performance but is more correct
      
      * feat: change message for skipped k8s validation
      
      * feat: change line breaks in case of k8s validation warning
      
      * test: add test case for missing schema skip message
      
      * docs: adjust combinations.yaml
      
      * refactor: rename example file
      
      * docs: fix typo
      
      * style: remove empty line
      
      * fix: add nil check before casting pointer to value, to avoid a runtime panic error
      4587ddb7
  12. 27 Apr, 2022 2 commits
  13. 26 Apr, 2022 2 commits
  14. 25 Apr, 2022 2 commits
  15. 21 Apr, 2022 1 commit
    • Roy Hadad's avatar
      refactor: output flag code duplication (#582) · 4ac1680f
      Roy Hadad authored
      * refactor: extract output flag validation to a single function
      
      * refactor: replace if_else with switch statement
      
      * refactor: a small refactor
      
      * test: add test case for empty output option
      4ac1680f
  16. 20 Apr, 2022 1 commit
  17. 18 Apr, 2022 1 commit