<#3065 [BUG] project/domain resource limits don't ...
# flyte-github
a
#3065 [BUG] project/domain resource limits don't overwrite global task_resource_defaults Issue created by flixr Describe the bug Raising task_resources limits for a project/domain doesn't work if the limit is higher than the global default limits in task_resource_defaults.yaml configmap. Expected behavior If an admin configures higher defaults/limit for a project/domain as per https://docs.flyte.org/en/latest/deployment/cluster_config/general.html#task-resources those should overwrite the global default settings from the configmap. Additional context to reproduce 1. E.g. ith global task_resource_defaults.yaml configmap:
Copy code
task_resources:
  defaults:
    cpu: 500m
    memory: 500Mi
    storage: 500Mi
  limits:
    cpu: 8
    gpu: 1
    memory: 10Gi
    storage: 1Gi
2. Set a higher limit for flytesnacks/development, tra.yml
Copy code
defaults:
    cpu: "1"
    memory: 1Gi
limits:
    cpu: "12"
    memory: 25Gi
project: flytesnacks
domain: development
3. verify:
flytectl get task-resource-attribute -p flytesnacks -d development
Copy code
{
  "project": "flytesnacks",
  "domain": "development",
  "defaults": {
    "cpu": "1",
    "memory": "2Gi"
  },
  "limits": {
    "cpu": "12",
    "memory": "25Gi"
  }
}
4. Try to run task with e.g. 20Gi memory requested:
Copy code
Requested MEMORY default [20Gi] is greater than current limit set in the platform configuration [10Gi]. Please contact Flyte Admins to change these limits or consult the configuration
Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte