volsync icon indicating copy to clipboard operation
volsync copied to clipboard

Allow shorter resource names for kubectl volsync and verify length not surpassing 63 char limit

Open clushie opened this issue 2 years ago • 0 comments

Describe the feature you'd like to have. My namespace is 35 characters long, the PVC in addition also 10-15 characters.

Running kubectl volsync migration create --pvcname prod-demo--ji63816-terraform-module/blob --capacity 10Gi --storageclass gp2 -r md-blob

I'll end in a situation as such:

Service "volsync-rsync-dst-prod-demo--ji63816-terraform-module-blob-migration-dest" is invalid: metadata.name: Invalid value: "volsync-rsync-dst-prod-demo--ji63816-terraform-module-blob-migration-dest": must be no more than 63 characters

What is the value to the end user? (why is it a priority?) Long resource names will hit the limit, making it impossible to use the plugin

How will we know we have a good solution? (acceptance criteria) Automatically truncate resource names to less than 63 characters, for example by using a short-id.

clushie avatar Jan 29 '24 13:01 clushie