• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 20468138523
51%

Build:
DEFAULT BRANCH: main
Ran 23 Dec 2025 06:08PM UTC
Jobs 1
Files 412
Run time 130min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Dec 2025 06:06PM UTC coverage: 50.571% (+0.007%) from 50.564%
20468138523

push

github

web-flow
K8s Client: Apply Pod Spec Annotations (#3152)

Summary
The applyPodTemplatePatch function in pkg/container/kubernetes/client.go was only copying Labels from the pod template patch but NOT Annotations.

Fixes #3153

Fix
// Copy annotations from the patched spec to our template
if patchedSpec.ObjectMetaApplyConfiguration != nil && len(patchedSpec.Annotations) > 0 {
    baseTemplate = baseTemplate.WithAnnotations(patchedSpec.Annotations)
}
Tests Created
Unit test (pkg/container/kubernetes/client_test.go):

TestApplyPodTemplatePatchAnnotations - Tests the function directly
E2E test (test/e2e/chainsaw/operator/single-tenancy/test-scenarios/pod-annotations/):

Creates MCPServer with custom annotations in podTemplateSpec
Verifies annotations appear on the StatefulSet's pod template
The chainsaw tests previously failed without the fix:

---------

Signed-off-by: Jeremy Drouillard <jeremy@stacklok.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

28539 of 56434 relevant lines covered (50.57%)

58.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20468138523.1 23 Dec 2025 06:08PM UTC 412
50.57
GitHub Action Run
Source Files on build 20468138523
  • Tree
  • List 412
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20468138523
  • 7d67ecf4 on github
  • Prev Build on main (#20461322159)
  • Next Build on main (#20469535611)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc