vmware-archive / operator-builder

A Kubebuilder plugin to accelerate the development of Kubernetes operators
MIT License
41 stars 6 forks source link

feat: marker validation (marker name) #258

Open scottd018 opened 2 years ago

scottd018 commented 2 years ago

Currently, we do not handle improper markers (e.g. i specify operator-builder marker with unknown marker names). This would pass through and just work, however, will be confusing to end users. We should:

  1. Error out when we find an +operator-builder marker with invalid marker definitions (e.g. field, collection:field, and resource are all valid). If someone were to type resource as rsrc, we should notify them and not build their operator.