Skip to content

Add spec.sharding to HyperbytedbCluster - #13

Merged
austin-barrington merged 1 commit into
mainfrom
feat/crd-sharding-spec
Aug 19, 2026
Merged

Add spec.sharding to HyperbytedbCluster#13
austin-barrington merged 1 commit into
mainfrom
feat/crd-sharding-spec

Conversation

@austin-barrington

Copy link
Copy Markdown
Member

Summary

  • Add optional spec.sharding on HyperbytedbCluster and render it as a [sharding] block in the generated ConfigMap (config.toml).
  • Validate the same inequalities HyperbyteDB enforces (regionMergeSeries < regionSplitSeries < regionMaxSeries) and require replicas > 1 when sharding is enabled.
  • Samples, CRD, Helm chart CRD, and dist/install.yaml include the new fields so Kind no longer needs a ConfigMap patch plus operator scale-to-0.

Test plan

  • go test ./api/v1alpha1/ ./internal/hyperbytedb/
  • Apply a 3-replica cluster with spec.sharding.enabled: true and confirm pods mount config.toml containing [sharding] / enabled = true
  • Confirm a 1-replica cluster with sharding.enabled: true is rejected by the webhook
  • Confirm changing spec.sharding rolls the StatefulSet (ConfigHash changes)

Made with Cursor

Kind no longer needs to patch the ConfigMap and scale the operator off;
the CRD carries the same keys and inequalities as HyperbyteDB.
@austin-barrington
austin-barrington merged commit 22ee9a2 into main Aug 19, 2026
4 checks passed
@austin-barrington
austin-barrington deleted the feat/crd-sharding-spec branch August 19, 2026 08:05
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