Skip to content

Add Etcd resource calculator and ops-request mapping - #98

Merged
tamalsaha merged 1 commit into
masterfrom
etcd-support
Aug 16, 2026
Merged

tamalsaha merged 1 commit into
masterfrom
etcd-support

Conversation

@tamalsaha

Copy link
Copy Markdown
Contributor

Summary

  • Registers Etcd (kubedb.com/v1alpha2 and gitops.kubedb.com/v1alpha1) with a ResourceCalculator, following ZooKeeper's shape (the closest architectural sibling already in this repo: a single-role consensus ensemble with an optional Prometheus exporter sidecar). Standalone below 2 replicas, ensemble at or above.
  • Adds the ops.kubedb.com/v1alpha1 EtcdOpsRequest path mapping for horizontal scaling, vertical scaling, and volume expansion, using the field names EtcdVerticalScalingSpec/EtcdVolumeExpansionSpec actually declare (etcd/exporter), mirroring how Redis's mapping is shaped rather than ZooKeeper's single node field.
  • Adds EtcdContainerName to the shared constants block.

Test plan

  • go build ./...
  • go vet ./...
  • gofmt -l . clean
  • go test ./... — full repo suite passes, including the two new TestEtcd fixtures (standalone/ensemble) under kubedb.com/v1alpha2

Registers Etcd (kubedb.com/v1alpha2 and gitops.kubedb.com/v1alpha1) with the
same shape as ZooKeeper -- the closest architectural sibling already in this
repo, a single-role consensus ensemble with an optional Prometheus exporter
sidecar, standalone below 2 replicas and ensemble at or above. Also adds the
ops.kubedb.com/v1alpha1 EtcdOpsRequest path mapping for horizontal/vertical
scaling and volume expansion, using the field names EtcdVerticalScalingSpec
and EtcdVolumeExpansionSpec actually declare (etcd/exporter), mirroring how
Redis's mapping is shaped rather than ZooKeeper's single 'node' field.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit 35177c1 into master Aug 16, 2026
4 checks passed
@tamalsaha
tamalsaha deleted the etcd-support branch August 16, 2026 15:04
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