apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: foos.bar.example.com
spec:
  group: bar.example.com
  names:
    kind: Foo
    plural: foos
  scope: Namespaced
  versions:
  - name: "v1"
    storage: true
    served: true
    schema:
      openAPIV3Schema:
        type: object
