🐛 (applyconfiguration): Add year option to generator to ensure consistency behaviour#1379
🐛 (applyconfiguration): Add year option to generator to ensure consistency behaviour#1379camilamacedo86 wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: camilamacedo86 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
c4c3d7f to
ca8c426
Compare
|
@JoelSpeed I think this one is your baby :-) |
|
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-contributor-experience at kubernetes/community. /check-cla |
alvaroaleman
left a comment
There was a problem hiding this comment.
/hold
For the discussion in #1371
|
Thank you for looking on this one. Consistent behaviour is a key and expected.
|
|
I see this has a |
@alvaroaleman blocked it for discussion: #1379 (review) As I described in #1379 (comment) IMO it is a bug and must be done or we should not support the YEAR at all. |
Adds optional year parameter to applyconfiguration generator to match behavior of other generators (CRD, webhook, rbac, deepcopy). When specified, replaces " YEAR" placeholder in header file with given year.
More importantly, this creates inconsistency with
controller-gen, which causes problems for users.With this setup, some outputs, such as CRDs, behave differently from others, such as SSA. The result is inconsistent generated files. Be aware that a project can have both scenarios, CRDs with or not SSA annotations.
Then, this should be consistent across all generators. Otherwise, it is confusing for users and is a bug.
Fixes #1371