kind: CustomResourceDefinition
spec:
  group: superset.stackable.tech
  names:
    kind: SupersetDB
    plural: supersetdbs
    singular: supersetdb
    categories: []
    shortNames: []
  scope: Namespaced
  versions:
    - name: v1alpha1
      schema:
        openAPIV3Schema:
          type: object
          title: SupersetDB
          required:
            - spec
          properties:
            spec:
              type: object
              required:
                - config
                - credentialsSecret
                - image
                - loadExamples
              properties:
                image:
                  type: object
                  anyOf:
                    - required:
                        - custom
                        - productVersion
                    - required:
                        - productVersion
                        - stackableVersion
                  properties:
                    repo:
                      type: string
                      nullable: true
                      description: Name of the docker repo, e.g. `docker.stackable.tech/stackable`
                    custom:
                      type: string
                      description: Overwrite the docker image. Specify the full docker image name,
                        e.g.
                        `docker.stackable.tech/stackable/superset:1.4.1-stackable2.1.0`
                    pullPolicy:
                      enum:
                        - IfNotPresent
                        - Always
                        - Never
                      type: string
                      default: IfNotPresent
                      description: "[Pull
                        policy](https://kubernetes.io/docs/concepts/containers/image\
                        s/#image-pull-policy) used when pulling the Images"
                    pullSecrets:
                      type: array
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                            description: "Name of the referent. More info:
                              https://kubernetes.io/docs/concepts/overview/work\
                              ing-with-objects/names/#names"
                        description: LocalObjectReference contains enough information to let you locate
                          the referenced object inside the same namespace.
                      nullable: true
                      description: "[Image pull
                        secrets](https://kubernetes.io/docs/concepts/containers\
                        /images/#specifying-imagepullsecrets-on-a-pod) to pull
                        images from a private registry"
                    productVersion:
                      type: string
                      description: Version of the product, e.g. `1.4.1`.
                    stackableVersion:
                      type: string
                      description: Stackable version of the product, e.g. 2.1.0
                  description: The Superset image to use<
                config:
                  type: object
                  properties:
                    logging:
                      type: object
                      default:
                        containers: {}
                        enableVectorAgent: null
                      properties:
                        containers:
                          type: object
                          additionalProperties:
                            type: object
                            anyOf:
                              - required:
                                  - custom
                              - {}
                            properties:
                              file:
                                type: object
                                nullable: true
                                properties:
                                  level:
                                    enum:
                                      - TRACE
                                      - DEBUG
                                      - INFO
                                      - WARN
                                      - ERROR
                                      - FATAL
                                      - NONE
                                    type: string
                                    nullable: true
                                    description: Log levels
                              custom:
                                type: object
                                properties:
                                  configMap:
                                    type: string
                                    nullable: true
                                description: Custom log configuration provided in a ConfigMap
                              console:
                                type: object
                                nullable: true
                                properties:
                                  level:
                                    enum:
                                      - TRACE
                                      - DEBUG
                                      - INFO
                                      - WARN
                                      - ERROR
                                      - FATAL
                                      - NONE
                                    type: string
                                    nullable: true
                                    description: Log levels
                              loggers:
                                type: object
                                default: {}
                                additionalProperties:
                                  type: object
                                  properties:
                                    level:
                                      enum:
                                        - TRACE
                                        - DEBUG
                                        - INFO
                                        - WARN
                                        - ERROR
                                        - FATAL
                                        - NONE
                                      type: string
                                      nullable: true
                                      description: Log levels
                            description: Fragment derived from `ContainerLogConfigChoice`
                        enableVectorAgent:
                          type: boolean
                          nullable: true
                loadExamples:
                  type: boolean
                credentialsSecret:
                  type: string
                vectorAggregatorConfigMapName:
                  type: string
                  nullable: true
            status:
              type: object
              nullable: true
              required:
                - condition
              properties:
                condition:
                  enum:
                    - Pending
                    - Initializing
                    - 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 SupersetDBSpec via `CustomResource`
      served: true
      storage: true
      subresources:
        status: {}
      additionalPrinterColumns: []
metadata:
  name: supersetdbs.superset.stackable.tech
  annotations:
    helm.sh/resource-policy: keep
apiVersion: apiextensions.k8s.io/v1
