apiVersion: metering.openshift.io/v1
kind: MeteringConfig
metadata:
  name: operator-metering
spec:
  logHelmTemplate: true

  unsupportedFeatures:
    enableHDFS: true

  storage:
    type: hive
    hive:
      type: hdfs
      hdfs:
        namenode: hdfs-namenode-0.hdfs-namenode:9820

  reporting-operator:
    spec:
      resources:
        requests:
          cpu: 1
          memory: 250Mi
      config:
        logLevel: debug
        prometheus:
          metricsImporter:
            enabled: false
      nodeSelector:
        "node-role.kubernetes.io/worker": ""
        "metering-node-testing-label": "true"

  presto:
    spec:
      coordinator:
        resources:
          requests:
            cpu: 1
            memory: 1Gi
        nodeSelector:
          "node-role.kubernetes.io/worker": ""
          "metering-node-testing-label": "true"
      config:
        connectors:
          prometheus:
            enabled: true
            config:
              uri: "https://thanos-querier.openshift-monitoring.svc:9091/"
            auth:
              bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token

  hive:
    spec:
      metastore:
        nodeSelector:
          "node-role.kubernetes.io/worker": ""
          "metering-node-testing-label": "true"
        resources:
          requests:
            cpu: 1
            memory: 650Mi
        storage:
          size: 5Gi
      server:
        nodeSelector:
          "node-role.kubernetes.io/worker": ""
          "metering-node-testing-label": "true"
        resources:
          requests:
            cpu: 500m
            memory: 650Mi

  hadoop:
    spec:
      hdfs:
        enabled: true
        datanode:
          nodeSelector:
            "node-role.kubernetes.io/worker": ""
            "metering-node-testing-label": "true"
          resources:
            requests:
              memory: 500Mi
          storage:
            size: 5Gi
        namenode:
          nodeSelector:
            "node-role.kubernetes.io/worker": ""
            "metering-node-testing-label": "true"
          resources:
            requests:
              memory: 500Mi
          storage:
            size: 5Gi
