kind: CustomResourceDefinition
spec:
  group: superset.stackable.tech
  names:
    kind: DruidConnection
    plural: druidconnections
    singular: druidconnection
    categories: []
    shortNames: []
  scope: Namespaced
  versions:
    - name: v1alpha1
      schema:
        openAPIV3Schema:
          type: object
          title: DruidConnection
          required:
            - spec
          properties:
            spec:
              type: object
              required:
                - druid
                - superset
              properties:
                druid:
                  type: object
                  required:
                    - name
                  properties:
                    name:
                      type: string
                      description: The name of the stacklet.
                    namespace:
                      type: string
                      nullable: true
                      description: The namespace. Defaults to the namespace of the `DruidConnection`
                        if it is not specified.
                  description: The Druid to connect.
                superset:
                  type: object
                  required:
                    - name
                  properties:
                    name:
                      type: string
                      description: The name of the stacklet.
                    namespace:
                      type: string
                      nullable: true
                      description: The namespace. Defaults to the namespace of the `DruidConnection`
                        if it is not specified.
                  description: The Superset to connect.
              description: |-
                The DruidConnection resource can be used to automatically deploy a Druid datasource in Superset.
                Learn more about it in the [Superset operator usage guide](https://docs.stackable.tech/home/26.3/superset/usage-guide/connecting-druid).
            status:
              type: object
              nullable: true
              required:
                - condition
              properties:
                condition:
                  enum:
                    - Pending
                    - Importing
                    - Ready
                    - Failed
                  type: string
                startedAt:
                  type: string
                  format: date-time
                  nullable: true
                  description: Time is a wrapper around time.Time which supports correct
                    marshaling to YAML and JSON.  Wrappers are provided for many
                    of the factory methods that the time package offers.
          description: Auto-generated derived type for DruidConnectionSpec via
            `CustomResource`
      served: true
      storage: true
      subresources:
        status: {}
      additionalPrinterColumns: []
metadata:
  name: druidconnections.superset.stackable.tech
apiVersion: apiextensions.k8s.io/v1
