apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: dummys.cache.example.com
spec:
  group: cache.example.com
  names:
    kind: Dummy
    listKind: DummyList
    plural: dummys
    singular: dummy
  scope: Namespaced
  subresources:
    status: {}
  validation:
    openAPIV3Schema:
      description: Dummy is the Schema for the dummy API
      properties:
        apiVersion:
          description: 'APIVersion defines the versioned schema of this representation
            of an object. Servers should convert recognized schemas to the latest
            internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
          type: string
        kind:
          description: 'Kind is a string value representing the REST resource this
            object represents. Servers may infer this from the endpoint the client
            submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
          type: string
        metadata:
          type: object
        spec:
          properties:
            size:
              description: Should be in spec
              format: int32
              type: integer
          required:
          - size
          type: object
        status:
          properties:
            hog:
              description: Not included in status but children should be
              properties:
                brand:
                  description: Not in spec or status, no boolean annotation
                  type: string
                engine:
                  description: Should be in status but not spec, since Hog isn't in
                    DummySpec
                  properties:
                    pistons:
                      description: Should not be included, no annotations.
                      items:
                        type: string
                      type: array
                  required:
                  - pistons
                  type: object
                foo:
                  type: string
                helmet:
                  description: Not in spec or status
                  type: string
                seatMaterial:
                  type: string
              required:
              - brand
              - engine
              - foo
              - helmet
              - seatMaterial
              type: object
            nodes:
              description: Should be in status but not spec, since DummyStatus isn't
                in DummySpec
              items:
                type: string
              type: array
          required:
          - hog
          - nodes
          type: object
      type: object
  version: v1alpha1
  versions:
  - name: v1alpha1
    served: true
    storage: true
