apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: otherdummies.cache.example.com
spec:
  group: cache.example.com
  names:
    kind: OtherDummy
    listKind: OtherDummyList
    plural: otherdummies
    singular: otherdummy
  scope: Namespaced
  validation:
    openAPIV3Schema:
      description: OtherDummy is the Schema for the other 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:
            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
        status:
          properties:
            nothing:
              description: Should be in status but not spec, since this isn't a spec
                type
              type: string
          required:
          - nothing
          type: object
      type: object
  version: v1alpha1
  versions:
  - name: v1alpha1
    served: true
    storage: true
