Skip to content

Revert postgres-enterprise cluster ID special-casing - #132

Merged
tamalsaha merged 1 commit into
masterfrom
revert-postgres-enterprise-cluster-exception
Aug 23, 2026
Merged

tamalsaha merged 1 commit into
masterfrom
revert-postgres-enterprise-cluster-exception

Conversation

@tamalsaha

Copy link
Copy Markdown
Member

Summary

  • Restore binding:"Required" on LicenseForm.Cluster and the unconditional uuid.Parse check in Validate() — the Kubernetes Cluster ID is required for every product again, including postgres-enterprise
  • Remove the server-side UUIDv7 auto-generation for postgres-enterprise in the /issue-license handler
  • Remove the form JS that hid the Kubernetes Cluster ID field when postgres-enterprise was selected
  • Remove the test covering the now-removed special case

This follows up on #131, which is already merged into master; the postgres-enterprise product itself is unaffected — only the cluster-ID special-casing added on top of it is reverted.

Test plan

  • go build -mod=vendor ./...
  • go test -mod=vendor -race ./pkg/server/...
  • Submit /issue-license with product = postgres-enterprise and no cluster ID and confirm it's rejected as required

Always require a valid cluster UUID on the license form regardless of
product, restoring the Cluster field's binding:"Required" tag and the
unconditional uuid.Parse check in Validate(). Also drops the
server-side UUIDv7 auto-generation for postgres-enterprise and the
form JS that hid the Kubernetes Cluster ID field for that product.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit e12c8bc into master Aug 23, 2026
4 checks passed
@tamalsaha
tamalsaha deleted the revert-postgres-enterprise-cluster-exception branch August 23, 2026 11:50
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.

1 participant