Skip to content

Tests for #1280 - #1283

Closed
guineveresaenger wants to merge 6 commits into
masterfrom
guin/service-template-anotations
Closed

Tests for #1280#1283
guineveresaenger wants to merge 6 commits into
masterfrom
guin/service-template-anotations

Conversation

@guineveresaenger

Copy link
Copy Markdown
Contributor

Tests for #1280

  • Add serviceTemplate to Workspace spec for Service annotations/labels
  • Add PR link to changelog entry
  • Address review feedback

bpalermo and others added 5 commits July 23, 2026 09:58
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>
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.56%. Comparing base (a35006f) to head (c7732dc).
⚠️ Report is 103 commits behind head on master.

Files with missing lines Patch % Lines
operator/internal/apply/utils.go 0.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

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.

2 participants