# This configmap will be auto loaded by core-svc
# So the configmap name is fixed
apiVersion: v1
kind: ConfigMap
metadata:
  name: oneconfig-core
data:
  config.yaml: |
    biz:
      dataTransferSplitEnable: true
      maxServerlessClusterCount: 100
      enableEventSync: true # whether to enable sync cluster events to GCP pubsub
      eventSyncGcpPubsubTopic: "dev-user-behavior-analysis" # which GCP pubsub topic should be used
      eventSyncGcpProjectId: "dbaas-eng-bi" # which GCP project should be used
      dedicatedSupportBuiltinCDCAdminRole: true
      devtierSupportBuiltinCDCAdminRole: false
      networkMeteringSwitchTime: 1730592000
    server:
      disableAuthDeleteCluster: true
      infraAPIWatcher:
        enable: true
      workerConfig:
        # projects which shouldn't be synced in worker
        excludeProjectIds:
          - 74069 # DBUser & DBaaS User
          - 223490 # Yiwen shared-vpc-test
      featureGates:
        serverless_tidb_mgmt:
          all: true
        eksfull:
          all: true
        gkefull:
          all: true
        # whether to use latest node profile when scaling cluster
        scale_with_new_profile:
          all: false
          enabledProjects:
            - 3198745
        # https://jira.tidbcloud.com/browse/DM-6907
        accurate_metering:
          all: true
        delegate_user:
          all: true
          enabledProjects:
            - 74069 # DBUser&DBaasUser
            - 73871 # letian.wang@pingcap.com
          disabledTenants:
            - 30061 # cloud platform
        delegate_user4devtier:
          all: true
          disabledProjects:
            - 2653573 # fei.chen@pingcap.com, for test https://github.com/tidbcloud/core-svc/pull/1007/files
        tikv_dedicated_raft_engine_storage:
          all: false
        shared_vpc:
          enabledTenants:
            - 210002 # Yiwen Dev Tenants
            - 900002 # htap autoscale test
        prefer_arm:
          all: true
        aws_cmek:
          all: false
          enabledProjects:
            - 3199920
            - 3199927
          enabledTenants:
            - 30060
        new_cluster_metering:
          all: true
        expose_sql_error:
          all: true
        event_driven:
          all: true
        ignore_normal_cluster:
          all: true
        cache_immutable:
          all: true
        maintenance_window_worker:
          all: true
        new_project_metering:
          all: true
        rerun_project_metering:
          all: true
        work_pool:
          all: false
          enabledTenants:
            - 30060
            - 60205
            - 30008
            - 60178
        disable_tier_change:
          all: false
          disabledTenants:
            - 30060
        custom_cidr:
          all: true
        cidr_block_size:
          all: false
          enabledTenants:
            - 60205
        dedicated_tidb_mgmt:
          affectOrgCreatedAfter: '2024-05-08T12:00:00+08:00'
          all: true
          disabledTenants: []
          disabledProjects: []
          enabledTenants: []
          enabledProjects: []
    metering:
      expire_duration: 720h
