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. 15 May, 2022 3 commits
    • shalev avhar's avatar
      feat: add os info as a util · e4e34bc2
      shalev avhar authored
      e4e34bc2
    • shalev avhar's avatar
      feat: add send to server method · c6d86744
      shalev avhar authored
      c6d86744
    • shalev007's avatar
      feat: datree validate yaml command (#604) · 8fe08050
      shalev007 authored
      
      * fix: change error message to human readable
      
      * feat: add new validateYaml command
      
      * test: fix tests
      
      * fix: add filename to default print
      
      * fix: add new validate yaml context
      
      * test: add validate yaml tests
      
      * feat: remove validate-yaml from help menu
      
      * feat: export logic to yamlValidator pkg
      
      * test: add test to pkg
      
      * fix: removed unnecessary example comment
      
      * fix: change variable names
      
      * fix: deleted comments
      
      * fix: removed human readable error message
      
      * fix: readded tests with files
      
      * fix: change extractor error mesage
      
      * feat: add pkg dependency
      
      * fix: remove comments
      Co-authored-by: default avatarshalev avhar <shalev@datree.io>
      8fe08050
  2. 12 May, 2022 2 commits
  3. 11 May, 2022 5 commits
  4. 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
  5. 08 May, 2022 1 commit
  6. 04 May, 2022 1 commit
  7. 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
  8. 02 May, 2022 4 commits
  9. 01 May, 2022 2 commits
  10. 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
  11. 27 Apr, 2022 2 commits
  12. 26 Apr, 2022 2 commits
  13. 25 Apr, 2022 2 commits
  14. 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
  15. 20 Apr, 2022 1 commit
  16. 18 Apr, 2022 1 commit
  17. 14 Apr, 2022 2 commits
  18. 13 Apr, 2022 2 commits
  19. 12 Apr, 2022 1 commit
  20. 11 Apr, 2022 3 commits
    • Eyar Zilberman's avatar
      docs: fix dark/light image issue (#568) · e3fa1334
      Eyar Zilberman authored
      e3fa1334
    • Noaa Barki's avatar
      docs: add visual architecture (#546) · 6be62869
      Noaa Barki authored
      6be62869
    • shalev007's avatar
      feat: extract skipping annotations policy check flow (#555) · a000366e
      shalev007 authored
      
      * feat: add skip rules
      
      * feat: add Configuration skipped properties
      
      * refactor: split loop - extract filesData populate to its own loop
      
      * refactor: rename ruleWithSchema to rule
      
      * refactor: split loop - extract rulesData initialization to its own loop
      
      * refactor: move configuration extraction to upper loop
      
      * refactor: slide statements
      
      * refactor: remove redundant line
      
      * refactor: rename newFailedRule to failedRule
      
      * refactor: extract evaluateRule function
      
      * refactor: add jsonSchemaValidator to evaluator context and add evaluateRule to evaluator
      
      * refactor: extract evaluateConfiguration method
      
      * refactor: change failedRuleData to failedRule variable name
      
      * feat: add skip for cli format
      
      * refactor: add EvaluationResultsSummery struct
      
      * feat: add skip rules print
      
      * fix: add go linter formatting
      
      * feat: add cyan color for skip rule summery
      
      * fix: show all skipped regardless of failed rules
      Co-authored-by: default avatarshalev avhar <shalev@datree.io>
      Co-authored-by: default avatarAlex <alex@datree.io>
      Co-authored-by: default avatarshmuelsa <95699772+shmuelsa@users.noreply.github.com>
      a000366e