apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: eventsourcesamples.sample.javaoperatorsdk
spec:
  group: sample.javaoperatorsdk
  names:
    kind: Eventsourcesample
    plural: eventsourcesamples
    singular: eventsourcesample
  scope: Namespaced
  versions:
    - name: v1
      schema:
        openAPIV3Schema:
          properties:
            status:
              properties:
                state:
                  type: string
                  enum:
                    - "SUCCESS"
                    - "ERROR"
              type: object
            spec:
              properties:
                value:
                  type: string
              type: object
          type: object
      served: true
      storage: true
      subresources:
        status: { }
