Skip to content

Commit

Permalink
docs: add jcloud executor level labels (#5704)
Browse files Browse the repository at this point in the history
  • Loading branch information
subbuv26 authored Feb 24, 2023
1 parent e55ef90 commit 6216019
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/concepts/jcloud/yaml-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,9 @@ executors:

### Add Labels

You can use `labels` (as key-value pairs) to attach metadata to your Flows:
You can use `labels` (as key-value pairs) to attach metadata to your Flows and Executors:

Flow level `labels`:
```{code-block} yaml
---
emphasize-lines: 2-5
Expand All @@ -414,6 +415,22 @@ executors:
uses: jinaai+docker://<username>/Executor1
```

Executor level `labels`:
```{code-block} yaml
---
emphasize-lines: 5-8
---
jtype: Flow
executors:
- name: executor1
uses: jinaai+docker://<username>/Executor1
jcloud:
labels:
index: partial
group: backend
```


```{hint}
Keys in `labels` have the following restrictions:
Expand Down

0 comments on commit 6216019

Please sign in to comment.