Skip to content

Commit

Permalink
docs: add documentation for keptn.sh/container annotation (#2500)
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Co-authored-by: odubajDT <93584209+odubajDT@users.noreply.github.com>
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
Co-authored-by: Meg McRoberts <meg.mcroberts@dynatrace.com>
  • Loading branch information
5 people committed Nov 16, 2023
1 parent 603ae33 commit 0578587
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/content/en/docs/implementing/integrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ The basic keptn.sh keys that can be used for annotations or labels are:
keptn.sh/workload: myAwesomeWorkload
keptn.sh/version: myAwesomeWorkloadVersion
keptn.sh/app: myAwesomeAppName
keptn.sh/container: myAwesomeContainer
```

Alternatively, you can use Kubernetes keys for annotations or labels.
Expand Down Expand Up @@ -100,8 +101,15 @@ These keys are defined as:
(unless it is "latest").
* `keptn.sh/app` or `app.kubernetes.io/part-of`: Determines the name
of the generated `KeptnApp` representing your Application.
All Workloads that share the same value for this label
All workloads that share the same value for this label
are consolidated into the same `KeptnApp` resource.
* `keptn.sh/container`: Determines the name of the container in the workload,
from which Keptn extracts the version.
This applies to single- and multi-container
workloads.
If the given container name does not match any container in the workload
no version can be determined.
Note that there is no equivalent `app.kubernetes.io/` annotation/label for this label.

Keptn automatically generates appropriate
[KeptnApp](../yaml-crd-ref/app.md)
Expand Down

0 comments on commit 0578587

Please sign in to comment.