acorn-io / runtime

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

fix: remove potential to panic when validating computeclass create requests #2403

Closed tylerslaton closed 6 months ago

tylerslaton commented 6 months ago

Prior to this PR we had the potential to panic when validating the creation of the public compute class types. This PR addresses that issue and refactors for readbility.

For https://github.com/acorn-io/runtime/issues/2401

Checklist