Skip to content

feat: propagate model service annotations to pod template metadata#55

Merged
iasthc merged 4 commits intomainfrom
54-model-service-add-annotations-to-pod
Mar 31, 2026
Merged

feat: propagate model service annotations to pod template metadata#55
iasthc merged 4 commits intomainfrom
54-model-service-add-annotations-to-pod

Conversation

@KUASWoodyLIN
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings March 31, 2026 11:25
@KUASWoodyLIN KUASWoodyLIN linked an issue Mar 31, 2026 that may be closed by this pull request
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies internal/modelservice/deployment.go to propagate annotations from the ModelService to the Pod template. Feedback highlights that copying all annotations, including system-managed ones like kubectl.kubernetes.io/last-applied-configuration, can trigger unnecessary rolling updates for heavy LLM serving pods. It is recommended to filter out system annotations or provide a dedicated field for pod-level annotations to prevent unintended rollouts.

Comment thread internal/modelservice/deployment.go Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

This PR updates the ModelService serving Deployment builder to propagate ModelService-level annotations down to the PodTemplate metadata, enabling pod-level consumers (e.g., scrapers/injectors) to rely on those annotations.

Changes:

  • Add ms.Annotations to Deployment.Spec.Template.ObjectMeta.Annotations in BuildDeployment.

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

Comment thread internal/modelservice/deployment.go
@iasthc iasthc merged commit 00fe354 into main Mar 31, 2026
10 checks passed
@iasthc iasthc deleted the 54-model-service-add-annotations-to-pod branch March 31, 2026 14:26
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.

Model service add annotations to pod

3 participants