Skip to content

Commit cade792

Browse files
committed
make labels optional
Signed-off-by: odubajDT <[email protected]>
1 parent a9458cd commit cade792

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/resource/k8s.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,14 @@ distributed among the nodes of a cluster.
277277

278278
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
279279
|---|---|---|---|---|---|
280-
| [`k8s.deployment.label.<key>`](/docs/attributes-registry/k8s.md) | string | The label key-value pairs placed on the Deployment. [1] | `k8s.deployment.label.app=guestbook`; `k8s.deployment.label.injected=` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
281280
| [`k8s.deployment.name`](/docs/attributes-registry/k8s.md) | string | The name of the Deployment. | `opentelemetry` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
282281
| [`k8s.deployment.uid`](/docs/attributes-registry/k8s.md) | string | The UID of the Deployment. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
283-
| [`k8s.deployment.annotation.<key>`](/docs/attributes-registry/k8s.md) | string | The annotation key-value pairs placed on the Deployment. [2] | `k8s.deployment.annotation.replicas=1`; `k8s.deployment.annotation.data=` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
282+
| [`k8s.deployment.annotation.<key>`](/docs/attributes-registry/k8s.md) | string | The annotation key-value pairs placed on the Deployment. [1] | `k8s.deployment.annotation.replicas=1`; `k8s.deployment.annotation.data=` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
283+
| [`k8s.deployment.label.<key>`](/docs/attributes-registry/k8s.md) | string | The label key-value pairs placed on the Deployment. [2] | `k8s.deployment.label.app=guestbook`; `k8s.deployment.label.injected=` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
284284

285-
**[1] `k8s.deployment.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
285+
**[1] `k8s.deployment.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
286286

287-
**[2] `k8s.deployment.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
287+
**[2] `k8s.deployment.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
288288

289289
<!-- markdownlint-restore -->
290290
<!-- prettier-ignore-end -->

model/k8s/resources.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ groups:
8585
- ref: k8s.deployment.uid
8686
- ref: k8s.deployment.name
8787
- ref: k8s.deployment.label
88+
requirement_level: opt_in
8889
- ref: k8s.deployment.annotation
8990
requirement_level: opt_in
9091

0 commit comments

Comments
 (0)