Skip to content

Conversation

@diafour
Copy link
Member

@diafour diafour commented Jun 25, 2024

Description

NOTE: No significant changes in rewriters are made, except simple refactoring in some places:

  • Extract RewriteRoleRule for common code in validating, mutating, clusterrole and role.
  • Support @Root path for all transformers.

Main changes:

  • Move traversing methods to transform package.
  • Move rules related code to rules package.
  • Make rewriters one resource rewriters
  • Move ResourceOrList calls out of rewriters to rule_rewriter.go
  • Fix: enable rewrite for ServiceMonitorList.

Why do we need it, and what problem does it solve?

It is the first step in rewriters code optimization. Open a separate PR to reduce renaming noise in the next PRs.

What is the expected result?

Everything works as before, even bugs.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

NOTE: No significant changes in rewriters are made, except simple refactoring in some places:
- Extract RewriteRoleRule for common code in validating, mutating, clusterrole and role.
- Support @root path for all transformers.

Main changes:
- Move traversing methods to transform package.
- Move rules related code to rules package.
- Make rewriters one resource rewriters
- Move ResourceOrList calls out of rewriters to rule_rewriter.go
- Fix: enable rewrite for ServiceMonitorList.

Signed-off-by: Ivan Mikheykin <[email protected]>
@diafour diafour requested a review from yaroslavborbat June 25, 2024 10:24
@diafour diafour marked this pull request as draft July 4, 2024 11:37
@Isteb4k Isteb4k added this to the v0.20.0 milestone May 29, 2025
@nevermarine nevermarine modified the milestones: v0.20.0, v0.21.0 Jun 17, 2025
@nevermarine nevermarine modified the milestones: v0.21.0, v0.22.0 Jun 26, 2025
@universal-itengineer universal-itengineer modified the milestones: v0.22.0, v0.23.0 Jul 10, 2025
@nevermarine nevermarine modified the milestones: v0.23.0, v0.24.0 Jul 24, 2025
@universal-itengineer universal-itengineer modified the milestones: v0.24.0, v0.25.0 Aug 8, 2025
@nevermarine nevermarine modified the milestones: v0.25.0, v0.26.0 Aug 29, 2025
@nevermarine nevermarine modified the milestones: v1.0.0, v1.1.0 Sep 11, 2025
@nevermarine nevermarine modified the milestones: v1.1.0, v1.2.0 Oct 6, 2025
@Isteb4k Isteb4k modified the milestones: v1.2.0, v1.1.1 Oct 14, 2025
@nevermarine nevermarine modified the milestones: v1.1.1, v1.2.0 Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants