-
Notifications
You must be signed in to change notification settings - Fork 3
Add deployment annotation for Backstage ingestion #43
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,8 @@ kind: Deployment | |||||||||||
| metadata: | ||||||||||||
| name: lfx-v2-query-service | ||||||||||||
| namespace: {{ .Release.Namespace }} | ||||||||||||
| labels: | ||||||||||||
| app.kubernetes.io/name: {{ .Chart.Name }} | ||||||||||||
|
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: The exact Kubernetes metadata key required for workload discovery in Backstage Kubernetes ingestion is backstage.io/kubernetes-id. It must be a label on the Deployment metadata. Citations:
Backstage requirement unmet: missing the The PR adds Suggested adjustment metadata:
name: lfx-v2-query-service
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ .Chart.Name }}
+ backstage.io/kubernetes-id: {{ .Chart.Name }}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This label is added on the backstage side, not on the deployment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
(´• ω •`) ʕ•ᴥ•ʔ ✏️ Learnings added
|
||||||||||||
| spec: | ||||||||||||
| replicas: {{ .Values.replicaCount }} | ||||||||||||
| selector: | ||||||||||||
|
|
@@ -19,6 +21,7 @@ spec: | |||||||||||
| {{- end }} | ||||||||||||
| labels: | ||||||||||||
| app: lfx-v2-query-service | ||||||||||||
| app.kubernetes.io/name: {{ .Chart.Name }} | ||||||||||||
| {{- with .Values.podLabels }} | ||||||||||||
| {{- toYaml . | nindent 8 }} | ||||||||||||
| {{- end }} | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR title/description say Backstage requires a deployment annotation for discovery, but this change adds a standard
app.kubernetes.io/namelabel on the Deployment metadata. If Backstage ingestion is expecting an annotation (or a specific Backstage key likebackstage.io/...), this won’t satisfy the stated requirement—please add the correct annotation/key atmetadata.annotations(and, if discovery uses labels/selectors, ensure it’s applied to the resources Backstage queries, e.g., Deployment/Service and/or pod template labels as appropriate).