Add Validation for NodeClassReference #1207
Labels
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
v1
Issues requiring resolution by the v1 milestone
Description
What problem are you trying to solve?
Right now, there's no CEL or webhook validation for what's passed through the NodeClassReference. This means that it can be easy to forget the version portion or not properly capitalize kinds, etc. when specifying the reference.
It probably also makes sense for the cloudprovider to inject its own CEL validation when it pulls the NodePool CRD into its helm chart (similar to what AWS does here in scripts: https://github.com/aws/karpenter-provider-aws/tree/main/hack/validation)
The text was updated successfully, but these errors were encountered: