Skip to content

feat(source): set transformer on all informers#6451

Merged
k8s-ci-robot merged 2 commits into
kubernetes-sigs:masterfrom
vflaux:transform4all
Jun 1, 2026
Merged

feat(source): set transformer on all informers#6451
k8s-ci-robot merged 2 commits into
kubernetes-sigs:masterfrom
vflaux:transform4all

Conversation

@vflaux

@vflaux vflaux commented May 21, 2026

Copy link
Copy Markdown
Contributor

What does it do ?

Setup a transformer on all sources informers that removes kubectl last applied config annotation, managed fields and status condition (when it exists and is not needed).

Update clearStatusConditions() to support Unstructured resources.

Motivation

We need the transformer to support multiple annotation prefixes. Split from #6449 from easier review.
Should also minimize memory usage.

More

  • Yes, this PR title follows Conventional Commits
  • Yes, I added unit tests
  • Yes, I updated end user documentation accordingly

@k8s-ci-robot k8s-ci-robot requested review from mloiseleur and szuecs May 21, 2026 13:57
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 21, 2026
@coveralls

coveralls commented May 21, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 26724753323

Coverage increased (+0.06%) to 80.691%

Details

  • Coverage increased (+0.06%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 323 coverage regressions across 9 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

323 previously-covered lines in 9 files lost coverage.

File Lines Losing Coverage Coverage
traefik_proxy.go 107 68.02%
gateway.go 69 86.86%
kong_tcpingress.go 55 49.54%
ambassador_host.go 18 84.25%
openshift_route.go 17 83.59%
contour_httpproxy.go 16 84.44%
f5_transportserver.go 16 79.79%
f5_virtualserver.go 16 80.81%
informers/transformers.go 9 88.3%

Coverage Stats

Coverage Status
Relevant Lines: 21482
Covered Lines: 17334
Line Coverage: 80.69%
Coverage Strength: 1447.1 hits per line

💛 - Coveralls

Comment thread source/gateway.go
@mloiseleur

Copy link
Copy Markdown
Collaborator

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 22, 2026

@ivankatliarchuk ivankatliarchuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests missing for added functionality

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 25, 2026
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 30, 2026
@ivankatliarchuk

Copy link
Copy Markdown
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 31, 2026
@ivankatliarchuk

Copy link
Copy Markdown
Member

/lgtm cancel

Found few things

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 31, 2026

@ivankatliarchuk ivankatliarchuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Persistent typo across the entire PR: Every function except one uses Tranform instead of Transform

Traefik test only covers 1 of 6 informers

Comment thread source/f5_virtualserver_test.go Outdated
Comment thread source/traefik_proxy_test.go
Comment thread source/gateway.go
Comment thread source/openshift_route_test.go Outdated
@ivankatliarchuk

Copy link
Copy Markdown
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 1, 2026
@ivankatliarchuk

Copy link
Copy Markdown
Member

/approve

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ivankatliarchuk

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2026
@k8s-ci-robot k8s-ci-robot merged commit 0554ddf into kubernetes-sigs:master Jun 1, 2026
19 checks passed
@vflaux vflaux deleted the transform4all branch June 7, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants