acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.13k stars 100 forks source link

Enable setting a default ComputeClass on projects #2470

Closed njhale closed 7 months ago

njhale commented 8 months ago

Enable selecting the default ComputeClass for Apps deployed to a project via a new project spec field.

The DefaultComputeClass field contains the name of a [Project|Cluster]ComputeClassInstance to select as the default. If no compute classes with that name exist, the existing ComputeClass defaulting rules are applied.

This PR also extends API validation for project create and update to ensure that a compute class with a matching name exists when the field is set.

Part of https://github.com/acorn-io/manager/issues/1943