Skip to content

Split announce shard endpoints from comma-separated input in redis editor#1075

Merged
ArnobKumarSaha merged 2 commits into
masterfrom
arnob-redis-shards
Jun 30, 2026
Merged

Split announce shard endpoints from comma-separated input in redis editor#1075
ArnobKumarSaha merged 2 commits into
masterfrom
arnob-redis-shards

Conversation

@ArnobKumarSaha

Copy link
Copy Markdown
Member

What

The announce.shards field in kubedbcom-redis-editor-options takes string input, but the resource expects an array of objects shaped like { endpoints: ["endpoint1", "endpoint2"] }.

Changes

  • create-ui.yaml: bind the shards array-item-form to temp/announceShards (comma-separated string per shard) instead of writing raw strings into the schema path; wire init and watcher.
  • functions.js:
    • setAnnounceShards() — renders existing model shards as comma-joined strings for display.
    • onAnnounceShardsChange() — splits each comma-separated input into { endpoints: [...] } and commits the correct shape to /spec/cluster/announce/shards.

Keeps the model in the schema-required shape, so isAnnounceValid()'s length-vs-master check still works.

ArnobKumarSaha and others added 2 commits June 30, 2026 15:22
…itor

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Signed-off-by: Samiul <samiul@appscode.com>
* add redis shard validation

Signed-off-by: Samiul <samiul@appscode.com>

* update validations

Signed-off-by: Samiul <samiul@appscode.com>

* update validations

Signed-off-by: Samiul <samiul@appscode.com>

* update validations

Signed-off-by: Samiul <samiul@appscode.com>

---------

Signed-off-by: Samiul <samiul@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit 7742024 into master Jun 30, 2026
8 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-redis-shards branch June 30, 2026 10:01
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