From c071e8718db2346f9dd2c994c582e46b8f7cacbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=B8=85=28Starsky=2EY=29?= Date: Wed, 18 Jan 2023 10:28:36 +0800 Subject: [PATCH] add a label key: TaskIndexKey = volcano.sh/task-index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨帅(Starsky.Y) --- pkg/apis/batch/v1alpha1/labels.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/apis/batch/v1alpha1/labels.go b/pkg/apis/batch/v1alpha1/labels.go index 4ee1d26a..6c6bb893 100644 --- a/pkg/apis/batch/v1alpha1/labels.go +++ b/pkg/apis/batch/v1alpha1/labels.go @@ -19,6 +19,8 @@ package v1alpha1 const ( // TaskSpecKey task spec key used in pod annotation TaskSpecKey = "volcano.sh/task-spec" + // TaskIndexKey task index key used in pod annotation + TaskIndexKey = "volcano.sh/task-index" // JobNameKey job name key used in pod annotation / labels JobNameKey = "volcano.sh/job-name" // QueueNameKey queue name key used in pod annotation / labels