apiVersion: service.aep.asag.io/v1
kind: Definition
metadata:
  namespace: asag
  name: mysql-operator-0.3.2
spec:
  name: mysql-operator
  version: 0.3.2
  includes:
    - vendor: asag
      name: defaults-operator
      version: 0.2.7
  clusters:
    - name: mysql-operator
      flags:
        - key: v1_role
          from: value
          value: mysql-operator
          to: label
      sizing:
        initial: 1
        minimum: 1
        maximum: 1
        increment: 0
      podspec:
        containers:
          - name: mysql-operator
            image: aep/base_jammy
      topologyqueries:
        - name: allnodes
          format: array
          flags:
            - key: operator_identifier
              value: mysql-operator
            - key: v1_role
              value: mysql
          groupby:
            - v1_clusterid
            - v1_role
          scope: global
  operator:
    version: '1.0'
    flags:
      - key: operator_identifier
        from: value
        value: mysql-operator
        to: label
  settings:
    - name: environment
      schema:
        default: mysql_prod
