Skip to content

[backport v2.11] Refactors keyValueArgs handling for improved efficiency (#928) #930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: release/v0.7
Choose a base branch
from

Conversation

apoorvajagtap
Copy link
Contributor

@apoorvajagtap apoorvajagtap commented May 30, 2025

Follow up to #925
Backport of #928

Issue: Related to rancher/rancher#50340

Problem

Solution

This PR:

  • Decouples parseFromRawArgs from the keyValueArgs receiver.
  • Simplifies the logic and results in improved performance.
  • Updates getKubeAPIServerArgs to return errors to the UI.

Per benchmark, this approach improves the performance by ~10-12%.

CheckList

  • Test
  • Docs

@apoorvajagtap apoorvajagtap requested a review from a team as a code owner May 30, 2025 16:49
@apoorvajagtap apoorvajagtap requested a review from jiaqiluo May 30, 2025 16:49
This commit decouples parseFromRawArgs from the keyValueArgs receiver.
Simplifies the logic and results in improved performance.
Updates getKubeAPIServerArgs to return errors to the UI.

Follow up to rancher#925
@apoorvajagtap apoorvajagtap force-pushed the 0.7-refactor-mutator branch from 34f646d to 64b70f9 Compare May 30, 2025 16:52
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.

2 participants