karmada-io / karmada

Open, Multi-Cloud, Multi-Cluster Kubernetes Orchestration
https://karmada.io
Apache License 2.0
4.12k stars 807 forks source link

chore: refactor `prune.RemoveIrrelevantField` to allow for more kind … #4821

Closed a7i closed 3 weeks ago

a7i commented 3 weeks ago

…pruners

What type of PR is this?

/kind cleanup

What this PR does / why we need it: Allows for more pruners to be added and avoid lint errors such as cyclomatic complexity in https://github.com/karmada-io/karmada/pull/4766

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer: See PR https://github.com/karmada-io/karmada/pull/4766 and discussion with @XiShanYongYe-Chang

Does this PR introduce a user-facing change?:

NONE
a7i commented 3 weeks ago

/cc @XiShanYongYe-Chang

karmada-bot commented 3 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chaunceyjiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[pkg/resourceinterpreter/OWNERS](https://github.com/karmada-io/karmada/blob/master/pkg/resourceinterpreter/OWNERS)~~ [chaunceyjiang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment