Tests for #1280 - #1283
Conversation
Adds a `serviceTemplate` field to the Workspace spec so users can set custom annotations and labels on the headless Service that fronts a workspace's pods. Because `StackSpec.WorkspaceTemplate` is a Workspace apply configuration, the field is settable from a Stack via `spec.workspaceTemplate.spec.serviceTemplate.metadata` with no new Stack-side plumbing. System labels win over conflicting template labels and the Service selector is kept to the system labels only, so pod routing is never affected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Use apimachinery labels.Merge instead of a custom mergeStringMaps helper - Match the field name in the EmbeddedServiceTemplateSpec.Metadata comment - Drop the redundant per-label loop and selector assertion in the test - Regenerate Workspace CRD/docs for the updated field comment Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…to service-template-annotations
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1283 +/- ##
==========================================
+ Coverage 55.95% 56.56% +0.61%
==========================================
Files 34 35 +1
Lines 4130 4506 +376
==========================================
+ Hits 2311 2549 +238
- Misses 1594 1720 +126
- Partials 225 237 +12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
No blocking issues found. serviceTemplate plumbing verified end-to-end (Stack strategic-merge → Workspace SSA → newService), label-merge precedence is correct (system labels win, selector unaffected), and the new behavior is covered by TestNewService. Leaving as COMMENT for maintainer sign-off since this adds a new public CRD API field.
Reviewed by Internal Trusted PR Reviewer
Add this agentic workflows to your repo
To install this agentic workflow, run
gh aw add pulumi-labs/gh-aw-internal/.github/workflows/gh-aw-pr-review.md@fccb0509de811cdc59bfe4e77504af0d4b5ebaa1
Tests for #1280