GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Update the new architecture interface of the umem (#94) by ucloud-umem-qingpfang · Pull Request #95 · ucloud/ucloud-cli Conversation
Contributor
Features: Add automatic VPC and Subnet selection for Redis and Memcache creation Automatically fills default VPC and subnet when not specified Add --block-cnt parameter for distributed Redis (default: 2) Add dynamic completion for region, zone, project-id, charge-type Fixes: Support new Redis instance ID prefixes: uhredis (master-replica), udredis (distributed)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…m struct - Remove memcacheCreateParams struct and createMemcache helper function - Use SDK request object directly since memcache only has one create type - Keep redis param structs as they are shared between master-replica and distributed types Co-Authored-By: Claude <[email protected]>
Episkey-G
requested changes
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the user explicitly passes --size-gb 5 --block-cnt 2 (5 is not a multiple of 2), the value is silently reduced to 2GB with no warning. Other create commands in this repo (count in udisk create, disk/memory in mysql create, size in memcache create) reject out-of-range input with an error and return, rather than silently correcting it — suggest keeping this consistent.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These region/zone/project-id flags are bound by hand, but cmd/util.go already provides bindRegionS / bindZoneS / bindProjectIDS (which set the default value and the completion func). Suggest reusing them to avoid copying the help text into three commands and the drift that follows when the text or default changes. The same hand-written pattern in redis delete (346-351) and memcache create (569-574) should be replaced too.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The validation actually applies to name (len(p.name) must be within [6,63]), but the [6,63] constraint is documented on --password, which has no length validation at all. So --name's real constraint is undocumented while --password advertises a constraint that isn't enforced. Suggest moving the constraint back to --name; if password really has a rule, add the matching validation too.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
| ||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |