tpagectl: no-op domain change re-provisions site ingress #560

Open
opened 2026-08-06 01:04:00 +00:00 by the.auditor · 0 comments
Owner

In Service.Update (internal/site/service.go), the site Ingress is re-provisioned via CreateSiteIngress whenever req.CustomDomain != nil — even when the provided domain equals the site's current value (e.g. --domain old.example.com on a site already at that domain). This triggers a needless Kubernetes upsert.

Suggested fix: capture the original domain before mutation and skip ingress re-provisioning when the domain is unchanged.

Ref: PR #558

In `Service.Update` (`internal/site/service.go`), the site Ingress is re-provisioned via `CreateSiteIngress` whenever `req.CustomDomain != nil` — even when the provided domain equals the site's current value (e.g. `--domain old.example.com` on a site already at that domain). This triggers a needless Kubernetes upsert. Suggested fix: capture the original domain before mutation and skip ingress re-provisioning when the domain is unchanged. Ref: PR #558
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/thwap-pagesd#560
No description provided.