본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

제목과 설명 (Title and Description)

원문 보기 위키 갱신

workflows.argoproj.io/title과 workflows.argoproj.io/description 어노테이션을 워크플로에 붙이면 워크플로 목록 화면에서 제목과 설명을 표시할 수 있습니다. Markdown까지 지원하므로 PR 정보 같은 메타데이터를 보기 좋게 노출할 수 있습니다.

출처: Argo Workflows 문서

본문

v3.4.4 이상

Workflow에 workflows.argoproj.io/title과 workflows.argoproj.io/description 어노테이션을 추가하면 워크플로 목록에 표시됩니다:

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  name: my-wf
  annotations:
    workflows.argoproj.io/title: 'Build and test' # defaults to `metadata.name` if not specified
    workflows.argoproj.io/description: 'SuperDuperProject PR #6529: Implement frobbing (aff39ee)'

위 매니페스트는 아래 이미지처럼 한 행으로 렌더링됩니다: Title and Description Example

임베디드 Markdown (Embedded Markdown)

v3.6 이상

어노테이션에 Markdown을 넣을 수도 있습니다:

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  name: my-wf
  annotations:
    workflows.argoproj.io/title: '**Build and test**' # defaults to `metadata.name` if not specified
    workflows.argoproj.io/description: '`SuperDuperProject` PR #6529: Implement frobbing (aff39ee)'

위 매니페스트는 아래 이미지처럼 한 행으로 렌더링됩니다: Markdown Example

아래는 몇 가지 추가 예제입니다:

# 1. markdown title, markdown description using [`remark-gfm`](https://github.com/remarkjs/remark-gfm) to convert URLs into anchor links
metadata:
  annotations:
    workflows.argoproj.io/title: '**feat: Allow markdown in workflow title and description. Fixes #10126**'
    workflows.argoproj.io/description: https://github.com/argoproj/argo-workflows/pull/10553

# 2. no title (defaults to `metadata.name`), no description
metadata:
  name: wonderful-poochenheimer

# 3. markdown title, no description
metadata:
  annotations:
    workflows.argoproj.io/title: '**Build and test and test**'

# 4. no title (defaults to `metadata.name`), markdown description
metadata:
  name: delightful-python
  annotations:
    workflows.argoproj.io/description: '`SuperDuperProject` PR #6529: Implement frobbing (aff39ee)'

# 5. markdown title, markdown description with a markdown link
metadata:
  annotations:
    workflows.argoproj.io/title: '**Build and test**'
    workflows.argoproj.io/description: '`SuperDuperProject` PR [#6529](https://github.com): Implement frobbing (aff39ee)'

위 예제들은 아래 이미지처럼 행으로 렌더링됩니다: More Markdown Examples

title과 description 어노테이션은 여러 줄 값도 지원합니다. 값이 길면 워크플로 목록 뷰에서 잘리지만, 워크플로 행을 펼쳐 워크플로 드로어를 표시하면 DESCRIPTION 섹션에서 볼 수 있습니다.

아래는 예제입니다:

# markdown title, multi-line markdown description with URL converted into an anchor link
metadata:
  annotations:
    workflows.argoproj.io/title: '**Test Title**'
    workflows.argoproj.io/description: |
      `This is a simple hello world example.`
      You can also run it in Python: https://couler-proj.github.io/couler/examples/#hello-world

위 예제는 아래 이미지처럼 펼쳐진 행으로 렌더링됩니다: Workflow Drawer Markdown Examples

ClusterWorkflowTemplates인 경우

v3.7 이상

ClusterWorkflowTemplate에도 Markdown이 포함된 workflows.argoproj.io/title과 workflows.argoproj.io/description 어노테이션을 추가하면 목록에 표시됩니다:

apiVersion: argoproj.io/v1alpha1
kind: ClusterWorkflowTemplate
metadata:
  name: my-cluster-workflow-template
  annotations:
    workflows.argoproj.io/title: '**Test Title**'
    workflows.argoproj.io/description: `This is a simple hello world example.`

위 매니페스트는 아래 이미지처럼 한 행으로 렌더링됩니다: ClusterWorkflowTemplate Example

CronWorkflows인 경우

v3.7 이상

CronWorkflow에도 Markdown이 포함된 workflows.argoproj.io/title과 workflows.argoproj.io/description 어노테이션을 추가하면 목록에 표시됩니다:

apiVersion: argoproj.io/v1alpha1
kind: CronWorkflow
metadata:
  name: my-cron-workflow
  annotations:
    workflows.argoproj.io/title: '**Test Title**'
    workflows.argoproj.io/description: `This is a simple hello world example.`

위 매니페스트는 아래 이미지처럼 한 행으로 렌더링됩니다: CronWorkflow Example

WorkflowTemplates인 경우

v3.7 이상

WorkflowTemplate에도 Markdown이 포함된 workflows.argoproj.io/title과 workflows.argoproj.io/description 어노테이션을 추가하면 목록에 표시됩니다:

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: my-workflow-template
  annotations:
    workflows.argoproj.io/title: '**Test Title**'
    workflows.argoproj.io/description: `This is a simple hello world example.`

위 매니페스트는 아래 이미지처럼 한 행으로 렌더링됩니다: WorkflowTemplate Example

더 알아보기 (Learn more)

  • 제목 어노테이션을 생략하면 metadata.name이 기본값으로 사용됩니다.
  • v3.6부터 임베디드 Markdown이 지원되며, remark-gfm으로 URL이 자동으로 앵커 링크로 변환됩니다.
  • ClusterWorkflowTemplate, CronWorkflow, WorkflowTemplate 모두 동일한 어노테이션 방식을 사용합니다.