# Generated by Fabric8 CRDGenerator, manual edits might get overwritten!
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: servicedomains.mercury.redhat.io
spec:
  group: mercury.redhat.io
  names:
    kind: ServiceDomain
    plural: servicedomains
    shortNames:
    - sdr
    singular: servicedomain
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        properties:
          spec:
            properties:
              expose:
                items:
                  enum:
                  - http
                  type: string
                type: array
              businessImage:
                type: string
              type:
                enum:
                - PartyRoutingProfile
                - CustomerOffer
                - CustomerCreditRating
                type: string
              serviceDomainInfra:
                type: string
            type: object
          status:
            properties:
              kafkaTopic:
                type: string
              kafkaUser:
                type: string
              conditions:
                items:
                  properties:
                    status:
                      type: string
                    reason:
                      type: string
                    lastTransitionTime:
                      type: string
                    observedGeneration:
                      type: number
                    type:
                      type: string
                    additionalProperties:
                      additionalProperties:
                        type: string
                      type: object
                    message:
                      type: string
                  type: object
                type: array
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
    additionalPrinterColumns:
      - description: Resource is Ready
        jsonPath: .status.conditions[?(@.type=='Ready')].status
        name: Ready
        type: string
      - description: Service Domain Infra Name
        jsonPath: .spec.serviceDomainInfra
        name: Infra
        type: string
      - description: Service Domain Infra status is ready
        jsonPath: .status.conditions[?(@.type=='ServiceDomainInfraReady')].status
        name: InfraReady
        type: string
      - description: Integration status is ready
        jsonPath: .status.conditions[?(@.type=='IntegrationReady')].status
        name: Integration
        type: string
      - description: Kafka topic status is ready
        jsonPath: .status.conditions[?(@.type=='KafkaTopicReady')].status
        name: Topic
        type: string
