Skip to content

Add deployment annotation for Backstage ingestion#28

Merged
agaetep merged 4 commits into
mainfrom
agaete/deployment-annotation
Apr 13, 2026
Merged

Add deployment annotation for Backstage ingestion#28
agaetep merged 4 commits into
mainfrom
agaete/deployment-annotation

Conversation

@agaetep
Copy link
Copy Markdown
Contributor

@agaetep agaetep commented Apr 13, 2026

Spotify Backstage can pull kubernetes data from components using deployment annotations. This service is missing the name annotation needed to discover it.

Signed-off-by: Antonia Gaete <agaete@linuxfoundation.org>
Copilot AI review requested due to automatic review settings April 13, 2026 16:41
@agaetep agaetep requested a review from a team as a code owner April 13, 2026 16:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds metadata intended to support Spotify Backstage Kubernetes ingestion/discovery for the lfx-v2-voting-service Helm chart.

Changes:

  • Add app.kubernetes.io/name to the Deployment’s top-level metadata.labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

namespace: {{ .Values.lfx.namespace }}
labels:
app: {{ .Chart.Name }}
app.kubernetes.io/name: {{ .Chart.Name }}
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title/description mention adding a deployment annotation for Backstage discovery, but the change adds a Kubernetes label (app.kubernetes.io/name) instead of an annotation. If Backstage ingestion is expecting a specific annotation key/value, this won’t satisfy the stated goal; either update the PR description/title or add the required metadata.annotations entry in the Deployment template.

Copilot uses AI. Check for mistakes.
Comment on lines 9 to +11
labels:
app: {{ .Chart.Name }}
app.kubernetes.io/name: {{ .Chart.Name }}
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app.kubernetes.io/name is being added only to the Deployment object’s metadata.labels. Labels there do not propagate to ReplicaSets/Pods; if this label is meant for discovery/selection, it should also be added under spec.template.metadata.labels (and possibly other related resources) so the running Pods carry it.

Copilot uses AI. Check for mistakes.
agaetep added 2 commits April 13, 2026 13:19
Signed-off-by: Antonia Gaete <agaete@linuxfoundation.org>
Signed-off-by: Antonia Gaete <agaete@linuxfoundation.org>
@agaetep agaetep merged commit d05ec48 into main Apr 13, 2026
8 of 9 checks passed
@agaetep agaetep deleted the agaete/deployment-annotation branch April 13, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants