From a08f86d0d15bebd5d00d3a9feeadcc163fe70a04 Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Thu, 11 Apr 2024 13:54:21 -0700 Subject: [PATCH 1/2] comment doesn't work, removign Signed-off-by: Yee Hing Tong --- cmd/get/matchable_task_resource_attribute.go | 21 -------------------- 1 file changed, 21 deletions(-) diff --git a/cmd/get/matchable_task_resource_attribute.go b/cmd/get/matchable_task_resource_attribute.go index 63ec6906..765a34b6 100644 --- a/cmd/get/matchable_task_resource_attribute.go +++ b/cmd/get/matchable_task_resource_attribute.go @@ -37,27 +37,6 @@ Example: output from the command: {"project":"flytesnacks","domain":"development","workflow":"core.control_flow.merge_sort.merge_sort","defaults":{"cpu":"1","memory":"150Mi"},"limits":{"cpu":"2","memory":"450Mi"}} - -Write the task resource attributes to a file. If there are no task resource attributes, a file would be populated with the basic data. -The config file is written to tra.yaml file. -Example: content of tra.yaml: - -:: - - flytectl get task-resource-attribute --attrFile tra.yaml - - -.. code-block:: yaml - - domain: development - project: flytesnacks - defaults: - cpu: "1" - memory: "150Mi" - limits: - cpu: "2" - memory: "450Mi" - Usage ` ) From f5b0bad90e62909fcb3c6fb2c8ef70fc0ed4086d Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Thu, 11 Apr 2024 14:05:18 -0700 Subject: [PATCH 2/2] fix Signed-off-by: Yee Hing Tong --- cmd/get/matchable_task_resource_attribute.go | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/cmd/get/matchable_task_resource_attribute.go b/cmd/get/matchable_task_resource_attribute.go index 765a34b6..cfc5f4c6 100644 --- a/cmd/get/matchable_task_resource_attribute.go +++ b/cmd/get/matchable_task_resource_attribute.go @@ -2,7 +2,6 @@ package get import ( "context" - "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" "github.com/flyteorg/flytectl/cmd/config" sconfig "github.com/flyteorg/flytectl/cmd/config/subcommand" @@ -37,6 +36,27 @@ Example: output from the command: {"project":"flytesnacks","domain":"development","workflow":"core.control_flow.merge_sort.merge_sort","defaults":{"cpu":"1","memory":"150Mi"},"limits":{"cpu":"2","memory":"450Mi"}} + +Write the task resource attributes to a file. If there are no task resource attributes, a file would be populated with the basic data. +The config file is written to tra.yaml file. +Example: content of tra.yaml: + +:: + + flytectl get -p flytesnacks -d development task-resource-attribute --attrFile tra.yaml + + +.. code-block:: yaml + + domain: development + project: flytesnacks + defaults: + cpu: "1" + memory: "150Mi" + limits: + cpu: "2" + memory: "450Mi" + Usage ` )