github.com/datreeio/datree@v1.9.22-rc/pkg/validatePoliciesYaml/test_fixtures/noDefaultPolicy.yaml (about)

     1  apiVersion: v1
     2  policies:
     3    - name: Default
     4      rules:
     5        - identifier: PODDISRUPTIONBUDGET_DENY_ZERO_VOLUNTARY_DISRUPTION
     6          messageOnFailure: ''
     7  
     8    - name: AnotherDefault
     9      rules:
    10        - identifier: SOME_IDENTIFIER_NAME
    11          messageOnFailure: ''
    12  customRules:
    13    - identifier: SOME_IDENTIFIER_NAME
    14      name: pods to undergo least voluntary disruption
    15      defaultMessageOnFailure: Setting minAvailable to 100 and maxUnavailable to 0 is not allowed by the organization, as node on which the pod is running can never be drained.
    16      schema:
    17        type: object
    18        required:
    19          - spec
    20  
    21    - identifier: PODDISRUPTIONBUDGET_DENY_ZERO_VOLUNTARY_DISRUPTION
    22      name: pods to undergo least voluntary disruption
    23      defaultMessageOnFailure: Setting minAvailable to 100 and maxUnavailable to 0 is not allowed by the organization, as node on which the pod is running can never be drained.
    24      schema:
    25        type: object
    26        required:
    27          - spec