github.com/datreeio/datree@v1.9.22-rc/pkg/evaluation/printer_test_expected_outputs/yaml_output.yaml (about)

     1  policyValidationResults:
     2  - fileName: File1
     3    ruleResults:
     4    - identifier: CONTAINERS_MISSING_IMAGE_VALUE_VERSION
     5      name: Ensure each container image has a pinned (tag) version
     6      messageOnFailure: Incorrect value for key `image` - specify an image version to
     7        avoid unpleasant "version surprises" in the future
     8      occurrencesDetails:
     9      - metadataName: rss-site
    10        kind: Deployment
    11        skipMessage: ""
    12        occurrences: 1
    13        isSkipped: false
    14        failureLocations:
    15        - schemapath: spec.template.spec.containers.0.image
    16          failederrorline: 10
    17          failederrorcolumn: 20
    18        validationFailureMessages: []
    19    - identifier: CONTAINERS_MISSING_MEMORY_LIMIT_KEY
    20      name: Ensure each container has a configured memory limit
    21      messageOnFailure: Missing property object `limits.memory` - value should be within
    22        the accepted boundaries recommended by the organization
    23      occurrencesDetails:
    24      - metadataName: rss-site
    25        kind: Deployment
    26        skipMessage: ""
    27        occurrences: 1
    28        isSkipped: false
    29        failureLocations:
    30        - schemapath: spec.template.spec.containers.0.resources.limits
    31          failederrorline: 95
    32          failederrorcolumn: 15
    33        validationFailureMessages: []
    34    - identifier: WORKLOAD_INVALID_LABELS_VALUE
    35      name: Ensure workload has valid label values
    36      messageOnFailure: Incorrect value for key(s) under `labels` - the vales syntax
    37        is not valid so the Kubernetes engine will not accept it
    38      occurrencesDetails:
    39      - metadataName: rss-site
    40        kind: Deployment
    41        skipMessage: ""
    42        occurrences: 1
    43        isSkipped: false
    44        failureLocations:
    45        - schemapath: metadata.labels.owner
    46          failederrorline: 7
    47          failederrorcolumn: 12
    48        validationFailureMessages: []
    49    - identifier: CONTAINERS_MISSING_LIVENESSPROBE_KEY
    50      name: Ensure each container has a configured liveness probe
    51      messageOnFailure: Missing property object `livenessProbe` - add a properly configured
    52        livenessProbe to catch possible deadlocks
    53      occurrencesDetails:
    54      - metadataName: rss-site
    55        kind: Deployment
    56        skipMessage: ""
    57        occurrences: 1
    58        isSkipped: false
    59        failureLocations:
    60        - schemapath: spec.template.spec.containers.0
    61          failederrorline: 22
    62          failederrorcolumn: 11
    63        validationFailureMessages: []
    64  policySummary:
    65    policyName: Default
    66    totalRulesInPolicy: 21
    67    totalSkippedRules: 0
    68    totalRulesFailed: 4
    69    totalPassedCount: 0
    70  evaluationSummary:
    71    configsCount: 1
    72    filesCount: 1
    73    passedYamlValidationCount: 1
    74    k8sValidation: 1/1
    75    passedPolicyValidationCount: 0
    76  yamlValidationResults: []
    77  k8sValidationResults: []
    78  loginUrl: https://app.datree.io/login?t=tDJhAU478UTDeSwxGAy99y
    79