---
generateName: testbed-copr-paging-
reclaimPolicy:
  gcStrategy:
    onFailure:
      artifact:
        monitor: true
        log: true
      reserveEnv:
        durationOnWorkingHour: 3h
        scaleIn: false
        scaleDown: true
      notification:
        feishu: https://open.feishu.cn/open-apis/bot/v2/hook/4e2fb51b-2e09-433b-91c4-1e5a71eb8f3f
items:
  - name: tc # 资源对象项名称
    type: TIDB_CLUSTER # 资源对象类型
    spec:
      version: "master-failpoint" # 全局 version 字段，结合 baseImage 使用
      pd:
        replicas: 1
        # baseImage: hub.pingcap.net/qa/pd # baseImage 设置后 image 字段失效，此时 image = <baseImage>:<version>，用到升级时必须设置 baseImage
        baseImage: hub-new.pingcap.net/qa/pd
        # version: "v5.0.2" # 局部覆盖 spec.version 字段

        # more refer to: https://github.com/tikv/pd/blob/master/conf/config.toml
        # config is string type and toml format, I prefer uses https://www.convertsimple.com/convert-yaml-to-toml/ to transfer yaml to toml
        config: |
          [log]
          level = "info"
        env:
          - name: GO_FAILPOINTS
            value: github.com/tikv/pd/server/api/enableFailpointAPI=return

      tidb:
        replicas: 1
        baseImage: hub-new.pingcap.net/qa/tidb
        config: |
          [log]
          # Log level: debug, info, warn, error, fatal.
          level = "info"
          [tikv-client.copr-cache]
          capacity-mb = 0.0
          [performance]
          run-auto-analyze = false
        env:
          - name: GO_FAILPOINTS
            value: github.com/pingcap/tidb/server/enableTestAPI=return
      tikv:
        replicas: 3
        baseImage: hub-new.pingcap.net/qa/tikv
        # more refer to: https://github.com/tikv/tikv/blob/master/etc/config-template.toml
        config: |
          ## Log levels: trace, debug, info, warning, error, critical.
          ## Note that `debug` and `trace` are only available in development builds.
          log-level = "info"
          [storage]
          reserve-space = "0MB"
