# Generated by Fabric8 CRDGenerator, manual edits might get overwritten!
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: managedconnectors.cos.bf2.org
spec:
  group: cos.bf2.org
  names:
    kind: ManagedConnector
    plural: managedconnectors
    shortNames:
    - mctr
    singular: managedconnector
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .spec.clusterId
      name: CLUSTER_ID
      type: string
    - jsonPath: .spec.connectorId
      name: CONNECTOR_ID
      type: string
    - jsonPath: .spec.deployment.connectorTypeId
      name: CONNECTOR_TYPE_ID
      type: string
    - jsonPath: .spec.deploymentId
      name: DEPLOYMENT_ID
      type: string
    - jsonPath: .status.connectorStatus.phase
      name: deployment_phase
      type: string
    - jsonPath: .status.phase
      name: PHASE
      type: string
    name: v1alpha1
    schema:
      openAPIV3Schema:
        properties:
          spec:
            properties:
              clusterId:
                type: string
              connectorId:
                type: string
              deploymentId:
                type: string
              deployment:
                properties:
                  connectorTypeId:
                    type: string
                  connectorResourceVersion:
                    type: integer
                  deploymentResourceVersion:
                    type: integer
                  kafka:
                    properties:
                      id:
                        type: string
                      url:
                        type: string
                    type: object
                  schemaRegistry:
                    properties:
                      id:
                        type: string
                      url:
                        type: string
                    type: object
                  desiredState:
                    type: string
                  secret:
                    type: string
                  unitOfWork:
                    type: string
                type: object
              operatorSelector:
                properties:
                  id:
                    type: string
                  type:
                    type: string
                  version:
                    type: string
                type: object
            type: object
          status:
            properties:
              phase:
                enum:
                - Initialization
                - Augmentation
                - Monitor
                - Deleting
                - Deleted
                - Stopping
                - Stopped
                - Transferring
                - Transferred
                - Error
                type: string
              conditions:
                items:
                  properties:
                    lastTransitionTime:
                      type: string
                    message:
                      type: string
                    observedGeneration:
                      type: integer
                    reason:
                      type: string
                    status:
                      type: string
                    type:
                      type: string
                  type: object
                type: array
              deployment:
                properties:
                  connectorTypeId:
                    type: string
                  connectorResourceVersion:
                    type: integer
                  deploymentResourceVersion:
                    type: integer
                  kafka:
                    properties:
                      id:
                        type: string
                      url:
                        type: string
                    type: object
                  schemaRegistry:
                    properties:
                      id:
                        type: string
                      url:
                        type: string
                    type: object
                  desiredState:
                    type: string
                  secret:
                    type: string
                  unitOfWork:
                    type: string
                type: object
              connectorStatus:
                properties:
                  phase:
                    type: string
                  conditions:
                    items:
                      properties:
                        lastTransitionTime:
                          type: string
                        message:
                          type: string
                        observedGeneration:
                          type: integer
                        reason:
                          type: string
                        status:
                          type: string
                        type:
                          type: string
                      type: object
                    type: array
                  assignedOperator:
                    properties:
                      id:
                        type: string
                      type:
                        type: string
                      version:
                        type: string
                    type: object
                  availableOperator:
                    properties:
                      id:
                        type: string
                      type:
                        type: string
                      version:
                        type: string
                    type: object
                type: object
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
