Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: explain that part-of and name annotations are concatenated #3778

Merged
merged 9 commits into from
Oct 29, 2024
10 changes: 10 additions & 0 deletions docs/docs/components/lifecycle-operator/keptn-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,13 @@ annotation/label is populated:
(in other words, neither the `keptn.sh/app`
or `app.kubernetes.io/part-of` annotation/label is populated),
one `KeptnApp` resource is created automatically for each workload.

> **Note**: Keptn application discovery determines the name of the `KeptnWorkload`
by concatenating the values of the `app.kubernetes.io/name` (or `keptn.sh/workload`)
and `app.kubernetes.io/part-of` (or `keptn.sh/app`) annotations.
This means that when only workload and version annotations/labels are provided — without
the `keptn.sh/app` or `app.kubernetes.io/part-of` annotation — Keptn creates a `KeptnApp`
resource for each `KeptnWorkload`.
Consequently, observability traces will capture individual`KeptnWorkload`
mowies marked this conversation as resolved.
Show resolved Hide resolved
resources, but they will not represent the combined workloads that make up the complete
deployed application.
4 changes: 4 additions & 0 deletions docs/docs/guides/integrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ annotation/label is populated:
and your observability output traces the individual `Keptnworkload` resources
but not the combined workloads that constitute your deployed application.

> **Note**: Keptn application discovery concatenates the values of the app.kubernetes.io/name or
keptn.sh/workload and app.kubernetes.io/part-of or keptn.sh/app annotation to determine the
name of the KeptnWorkload.

mowies marked this conversation as resolved.
Show resolved Hide resolved
See
[Keptn Applications and Keptn Workloads](../components/lifecycle-operator/keptn-apps.md)
for architectural information about how `KeptnApp` and `KeptnWorkloads`
Expand Down