apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: foos.baz.com
spec:
  conversion:
    strategy: None
  group: baz.com
  names:
    kind: Foo
    listKind: FooList
    plural: foos
    singular: foo
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: A simple foo.
        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:
            description: FooSpec is the spec for a Foo resource.
            properties:
              life:
                description: The meaning of foo.
                type: string
            type: object
          status:
            description: FooStatus is the status for an FooResource.
            properties:
              lastUpdated:
                description: LastUpdated is a timestamp of the last time the Foo's
                  status was Updated.
                format: date-time
                type: string
            required:
            - lastUpdated
            type: object
        required:
        - metadata
        type: object
    served: true
    storage: true
    subresources:
      status: {}

