Open brycahta opened 2 years ago
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle rotten
/lifecycle frozen
Summary
Some
ackgenconfig
- such as renames - use an operation-centric approach meaning an operation is required to define arename
config and consume it in code. This current experience is not optimal because it increases cognitive load for both users of the interface and maintainers of the implementation since they need to "know" about this operation detail and pass it around the codebase to use it. This results in higher barriers to entry for users, contributors, and maintainers. Migrating to a field-focused approach is more intuitive and will not require knowledge of operations to use.Context
This is the parent issue to track and implement changes to move configs from an operation-centric model to a field-focused approach. The proposal detailing the approach can be found here.
Prerequisites
Implementation
RenameConfig
RenameConfig
to FieldConfig with helpers/accessorsRenameConfig
in favor of op-centricrenames
, if presentgenerator.yaml
and replace op-centricrenames
with field-focusedRenameConfig
(do NOT edit thegenerator.yaml
in controller's repo yet)runtime
/code-generator
with field-focusedRenameConfig
generator.yaml
in their respective repos to use updatedRenameConfig
renames
from code-generator