apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  - rbac.yaml
  - scaler-config.yaml
  - service.yaml
  - workload.yaml
configMapGenerator:
  - name: scaler-config
    behavior: merge
    files:
      - sem-config=sem-config.json
      - startup-script=startup-script.sh
      - auto-analyze.config-file=config-file/auto-analyze.toml
      - batch.config-file=config-file/batch.toml
      - ddl.config-file=config-file/ddl.toml
      - import-into.config-file=config-file/import-into.toml
      - gc.config-file=config-file/gc.toml
      - gcv2.config-file=config-file/gcv2.toml
      - remote-query.config-file=config-file/remote-query.toml
      - shared.config-file=config-file/shared.toml
      - ttl.config-file=config-file/ttl.toml
      - tidb-resources=tidb-resources/small.yaml
      - batch.tidb-resources=tidb-resources/medium.yaml
      - ddl.tidb-resources=tidb-resources/xlarge.yaml
      - import-into.tidb-resources=tidb-resources/2xlarge.yaml
      - remote-query.tidb-resources=tidb-resources/medium.yaml
      - shared.tidb-resources=tidb-resources/xlarge.yaml
