flytectl update task-resource-attribute

Updates matchable resources of task attributes

Synopsis

Updates task resource attributes for given project and domain combination or additionally with workflow name.

Updating the task resource attribute is only available from a generated file. See the get section for generating this file. Also this will completely overwrite any existing custom project and domain and workflow combination attributes. Would be preferable to do get and generate an attribute file if there is an existing attribute already set and then update it to have new values Refer to get task-resource-attribute section on how to generate this file Here the command updates takes the input for task resource attributes from the config file tra.yaml eg: content of tra.yaml

domain: development
project: flytectldemo
defaults:
  cpu: "1"
  memory: "150Mi"
limits:
  cpu: "2"
  memory: "450Mi"
flytectl update task-resource-attribute --attrFile tra.yaml

Updating task resource attribute for project and domain and workflow combination. This will take precedence over any other resource attribute defined at project domain level. Update the resource attributes for workflow core.control_flow.run_merge_sort.merge_sort in flytectldemo, development domain

domain: development
project: flytectldemo
workflow: core.control_flow.run_merge_sort.merge_sort
defaults:
  cpu: "1"
  memory: "150Mi"
limits:
  cpu: "2"
  memory: "450Mi"
flytectl update task-resource-attribute --attrFile tra.yaml

Usage

flytectl update task-resource-attribute [flags]

Options

    --attrFile string   attribute file name to be used for updating attribute for the resource type.
-h, --help              help for task-resource-attribute

Options inherited from parent commands

-c, --config string    config file (default is $HOME/.flyte/config.yaml)
-d, --domain string    Specifies the Flyte project's domain.
-o, --output string    Specifies the output type - supported formats [TABLE JSON YAML DOT DOTURL]. NOTE: dot, doturl are only supported for Workflow (default "TABLE")
-p, --project string   Specifies the Flyte project.

SEE ALSO