Skip to content

Make LossLessDefaulter selective to only prevent dropping fields outside of schema #3174

Closed
@mimowo

Description

@mimowo

What would you like to be added:

Investigate making the LossLessDefaulter in Kueue to only prevent dropping fields outside of schema.
This is a follow up from the discussion: #3132 (comment)

And follow up to the issue: #2878

Why is this needed:

  • Long term we may want to remove some fields in Kueue webhooks, and it would be hard with the current LossLessDefaulter
  • Making LossLessDefaulter selective could possibly let us promote it as an opt-in defaulter in controller-runtime, allowing for:
    • reduced maintenance cost by moving from Kueue to controller-runtime
    • allow sharing the solution with other projects so that they don't need to reinvent the wheel

Completion requirements:

Investigate if this is feasible. and what is the implementation complexity, prototype.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions