apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: customservices.sample.javaoperatorsdk
spec:
  group: sample.javaoperatorsdk
  names:
    kind: CustomService
    plural: customservices
    singular: customservice
  scope: Namespaced
  versions:
    - name: v1
      schema:
        openAPIV3Schema:
          properties:
            status:
              properties:
                configMapStatus:
                  type: string
              type: object
            spec:
              properties:
                configMapName:
                  type: string
                key:
                  type: string
                value:
                  type: string
              type: object
          type: object
      served: true
      storage: true
      subresources:
        status: { }
