apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: customizeds.stable.example.io
  labels:
    app: krane
  annotations:
    krane.shopify.io/instance-rollout-conditions: '{
      "success_conditions": [
        {
          "path": "$.status.condition",
          "value":"success_value"
        },
        {
          "path":"$.status.test_field",
          "value":"success_value"
        }
      ],
      "failure_conditions": [
        {
          "path":"$.status.condition",
          "value":"failure_value",
          "custom_error_msg":"test custom error message"
        },
        {
          "path":"$.status.test_field",
          "value":"failure_value",
          "error_msg_path":"$.status.error_msg"
        }
      ]
    }'
spec:
  group: stable.example.io
  names:
    kind: Customized
    listKind: CustomizedList
    plural: customizeds
    singular: customized
  scope: Namespaced
  versions:
    - name: v1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          type: object
          properties:
            spec:
              type: object
            status:
              type: object
              properties:
                test_field:
                  type: string
                error_msg:
                  type: string
                observedGeneration:
                  type: integer
                condition:
                  type: string
