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

     1  apiVersion: v1
     2  policies:
     3    - name: Default
     4      isDefault: true
     5      rules:
     6        - identifier: PODDISRUPTIONBUDGET_DENY_ZERO_VOLUNTARY_DISRUPTION
     7          messageOnFailure: ''
     8  
     9    - name: AnotherDefault
    10      isDefault: true
    11      rules:
    12        - identifier: SOME_IDENTIFIER_NAME
    13          messageOnFailure: ''
    14  customRules:
    15    - identifier: SOME_IDENTIFIER_NAME
    16      name: pods to undergo least voluntary disruption
    17      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.
    18      schema:
    19        type: object
    20        required:
    21          - spec
    22  
    23    - identifier: PODDISRUPTIONBUDGET_DENY_ZERO_VOLUNTARY_DISRUPTION
    24      name: pods to undergo least voluntary disruption
    25      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.
    26      schema:
    27        type: object
    28        required:
    29          - spec