Skip to content

Cherry Pick PR #7075 to release-1.147#7134

Merged
cheftako merged 2 commits into
GoogleCloudPlatform:release-1.147from
xiaoweim:cherry-pick-7075-to-1.147
Mar 20, 2026
Merged

Cherry Pick PR #7075 to release-1.147#7134
cheftako merged 2 commits into
GoogleCloudPlatform:release-1.147from
xiaoweim:cherry-pick-7075-to-1.147

Conversation

@xiaoweim

@xiaoweim xiaoweim commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

This PR cherry-picks the changes from PR #7075 to the release-1.147 branch

This change introduces a 'skip-name-validation' flag across various controllers to bypass the duplicate controller name check during registration. This is particularly useful for integration tests where multiple managers might be created in the same process, avoiding conflicts in controller-runtime's global name registry.

Additionally, consolidated 'kccmanager_skipnamevalidation_test.go' into 'kccmanager_test.go'.
- Use k8s.io/utils/ptr.To instead of taking address of struct fields for controller options.
- Clarify SkipNameValidation comments and flag description.
- Add note about global state in controller-runtime during tests.
@xiaoweim xiaoweim changed the title Backport PR #7075 to release-1.147 Cherry Pick PR #7075 to release-1.147 Mar 20, 2026
@cheftako cheftako added this to the 1.147.patch milestone Mar 20, 2026

@cheftako cheftako left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks

@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheftako

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

@cheftako cheftako merged commit 6608419 into GoogleCloudPlatform:release-1.147 Mar 20, 2026
18 of 182 checks passed
@codebot-robot

Copy link
Copy Markdown
Collaborator

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants