apiVersion: v1
kind: ConfigMap
metadata:
  name: scheduler-config
  namespace: tas-scheduler
data:
  scheduler-config.yaml: |
    apiVersion: kubescheduler.config.k8s.io/v1beta1
    kind: KubeSchedulerConfiguration
    leaderElection:
      leaderElect: false
    profiles:
    - schedulerName: topology-aware-scheduler
      plugins:
        filter:
          enabled:
          - name: NodeResourceTopologyMatch
        queueSort:
          enabled:
          - name: Coscheduling
          disabled:
          - name: "*"
        preFilter:
          enabled:
          - name: Coscheduling
        permit:
          enabled:
          - name: Coscheduling
        reserve:
          enabled:
          - name: Coscheduling
        postBind:
          enabled:
          - name: Coscheduling
      pluginConfig:
      - name: Coscheduling
        args:
          permitWaitingTimeSeconds: 10
          deniedPGExpirationTimeSeconds: 3
      - name: NodeResourceTopologyMatch
        args:
          kubeconfigpath: "" # needs to be empty string
          namespaces:
          - openshift-topology-aware-scheduler
