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. 02 Jun, 2022 1 commit
  2. 01 Jun, 2022 1 commit
    • Roy Hadad's avatar
      refactor: change printer to return text in most methods (#656) · 8598a54f
      Roy Hadad authored
      * refactor: change PrintWarnings to GetWarningsText
      
      * refactor: return yamlValidationWarnings instead of printing
      
      * refactor: convert PrintWarnings to GetWarningsText
      
      * refactor: convert PrintEvaluationSummary to GetEvaluationSummaryText
      
      * refactor: convert PrintSummaryTable to GetSummaryTableText
      
      * refactor: break down PrintYamlSchemaResults to builder and printer
      
      * refactor: make getTextInColor public
      
      * refactor: make getTextInColor public
      
      * fix: add print in PrintValidationResults
      
      * refactor: remove unused mocks from set command printer
      
      * refactor: rename getStringOrNotAvailaible to getStringOrNotAvailableText
      
      * refactor: remove unused method
      
      * style: fix lint
      
      * fix: error handle after out.Write
      
      * style: fix lint
      
      * fix: add newline that was missing
      8598a54f
  3. 15 May, 2022 1 commit
    • 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
  4. 28 Apr, 2022 1 commit
    • 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
  5. 26 Apr, 2022 1 commit
  6. 13 Apr, 2022 1 commit
  7. 11 Apr, 2022 1 commit
    • 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
  8. 31 Mar, 2022 1 commit
  9. 30 Mar, 2022 1 commit
  10. 21 Mar, 2022 1 commit
  11. 21 Feb, 2022 2 commits
  12. 20 Feb, 2022 1 commit
  13. 17 Feb, 2022 1 commit
  14. 29 Sep, 2021 1 commit
  15. 11 Aug, 2021 2 commits
  16. 09 Aug, 2021 8 commits
  17. 08 Aug, 2021 1 commit
  18. 04 Aug, 2021 3 commits
  19. 03 Aug, 2021 3 commits
  20. 02 Aug, 2021 3 commits
  21. 14 Jul, 2021 1 commit
  22. 10 Jun, 2021 1 commit
  23. 09 Jun, 2021 2 commits
  24. 08 Jun, 2021 1 commit