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