crossplane-contrib / crossplane-lint

27 stars 10 forks source link

Add uid field to addMetaDataToSchema func #8

Closed SimonVHB closed 1 year ago

SimonVHB commented 1 year ago

When metadata.uid is referenced in a patch, crossplane-lint now throws an error because the field doesn't exist in the defenition. Adding it to the addMetaDataToSchema func enables you to use it in patches to generate some unique names for example.

SimonVHB commented 1 year ago

This also partially fixes #5 @MisterMX @janwillies

MisterMX commented 1 year ago

LGTM. Thanks a lot @SimonVHB!