Closed rinor closed 10 months ago
not sure of the use-case here? can you elaborate? you want to be able to create an image from an existing volume and create a volume from an image?
The idea is to create a volume image and later on create different instance disk volumes from that same image that is already uploaded and available. I.e I'm testing/creating 100 instances that need a persistent volume and don't see a reason to locally create/upload the same thing 100 times.
ah ok, GCP has a disk clone feature that might be a better fit for that? https://cloud.google.com/compute/docs/disks/create-disk-from-source
closing this until I find a better/less intrusive format/api
Usage: ops volume create-image [flags]
Flags: -d, --data string volume image data source -h, --help help for create-image -s, --size string volume image size when restored onto a persistent disk
$ ops volume create-from --help create volume from existing image
Usage: ops volume create-from [flags]
Flags: -h, --help help for create-from -s, --size string volume image size when restored onto a persistent disk