greptileai / ubicloud

Open, free, and portable cloud. Elastic compute, block storage (non replicated), virtual networking, managed Postgres, and IAM services in public beta.
https://ubicloud.com
GNU Affero General Public License v3.0
0 stars 0 forks source link

Make GPU instance not selectable to regular VM customers #5

Open dakshgup opened 3 months ago

dakshgup commented 3 months ago

Make GPU instance not selectable to regular VM customers via APIs

The APIs allow all vm size family to be selectable. In the web, we don't visualize them anyway, however, in the APIs, they were selectable. With this commit, we perform size validation in the API and only allow visible vm_sizes to be picked.

Disallow gpu instance in web route

Validate boot-image in web

Without this check, customers can edit the parameter via inspect element and use postgres base image as a base image for a VM. We do the same for APIs.