categories:
- Database
- MySQL
questions:
- variable: defaultImage
  default: "true"
  description: "Use default Docker image"
  label: Use Default Image
  type: boolean
  show_subquestion_if: false
  group: "Container Images"
  subquestions:
  - variable: image.repository
    default: "bitnami/mariadb"
    description: "Docker image name"
    type: string
    label: MariaDB Image Name
  - variable: image.tag
    default: "10.1.32"
    description: "Docker image tag"
    type: string
    label: MariaDB Image Tag
  - variable: metrics.image
    default: "prom/mysqld-exporter"
    description: "image name for metrics"
    type: string
    label: Metrics Image Name
    show_if: "metrics.enabled=true"
  - variable: metrics.imageTag
    default: "v0.10.0"
    description: "image tag for metrics"
    type: string
    label: Metrics Image Tag
    show_if: "metrics.enabled=true"
- variable: usePassword
  default: "true"
  description: "Enable password authentication"
  type: boolean
  required: true
  label: Enable Authentication
  show_subquestion_if: true
  group: "MariaDB Settings"
  subquestions:
  - variable: mariadbUser
    default: "admin"
    description: "Username of user to create."
    type: string
    label: MariaDB User
    required: true
  - variable: mariadbPassword
    default: ""
    description: "Password for user, defaults to a random 10-character alphanumeric string if not set"
    type: password
    label: MariaDB Password
- variable: mariadbDatabase
  default: ""
  description: "Name of database to create"
  type: string
  label: MariaDB Database
  required: true
  group: "MariaDB Settings"
- variable: service.type
  default: "ClusterIP"
  description: "MariaDB K8s Service type"
  type: enum
  options:
    - "ClusterIP"
    - "NodePort"
  required: true
  label: MariaDB Service Type
  show_subquestion_if: "NodePort"
  group: "Services and Load Balancing"
  subquestions:
  - variable: service.nodePort
    default: ""
    description: "NodePort port number(to set explicitly, choose port between 30000-32767)"
    type: int
    min: 30000
    max: 32767
    label: Service NodePort number
- variable: persistence.enabled
  default: "false"
  description: "Enable persistent volume for MariaDB"
  type: boolean
  required: true
  label: Enable MariaDB Persistent Volume 
  show_subquestion_if: true
  group: "Persistent Volume"
  subquestions:
  - variable: persistence.size
    default: "8Gi"
    description: "MariaDB Persistent Volume Size"
    type: string
    label: MariaDB Volume Size
    required: true
  - variable: persistence.storageClass
    default: ""
    description: "If undefined or  null, uses the default StorageClass. Defaults to null."
    type: storageclass
    label: Storage Class for MariaDB
- variable: metrics.enabled
  default: "false"
  description: "Start a side-car prometheus exporter"
  type: boolean
  required: true
  label: Enable Metrics
  group: "MariaDB Settings"
