github.com/datreeio/datree@v1.9.22-rc/pkg/validatePoliciesYaml/test_fixtures/customRuleInvalidSchema.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  customRules:
     9    - identifier: SOME_IDENTIFIER_NAME
    10      name: pods to undergo least voluntary disruption
    11      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.
    12      schema:
    13        type: object
    14        required:
    15          - spec
    16  
    17    - identifier: PODDISRUPTIONBUDGET_DENY_ZERO_VOLUNTARY_DISRUPTION
    18      name: pods to undergo least voluntary disruption
    19      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.
    20      schema:
    21        definitions:
    22          imagePullPattern:
    23            properties:
    24              spec:
    25                properties:
    26                  containers:
    27                    type: arrayi
    28                    items:
    29                      properties:
    30                        imagePullPolicy:
    31                            enum:
    32                                - Always