Closed verokarhu closed 2 weeks ago
Attention: Patch coverage is 88.46154%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 75.3%. Comparing base (
b0538cb
) to head (7d0f590
). Report is 1 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
kube-derive/src/custom_resource.rs | 88.5% | 3 Missing :warning: |
I rewrote the solution so the values are now passed as a two-string tuple. Also added the annotation support.
This PR adds support for setting annotations and labels on kube-derive generated CRDs.
Motivation
Writing Cluster API providers requires setting specific labels on the CRD: https://cluster-api.sigs.k8s.io/developer/providers/contracts#api-version-labels
Solution
New
annotation
andlabel
fields are added to kube-derive which can take a tuple of two strings as an argument.