Skip to content

Conversation

@apoorvajagtap
Copy link
Contributor

@apoorvajagtap apoorvajagtap commented Oct 1, 2025

Backport of: #1096

Issue: rancher/rancher#51953

Problem

Per the changes introduces with #913, the kube-apiserver-arg are deduplicated. This causes issues for k8s-specific flags that are allowed to be specified multiple times.

Solution

This commit instead of maintaining a keyValueArg{} struct:

  • Parses the arguments as a []string.
  • Deletes/Prepends the kubeAPIAdmissionConfigOption key-value pair as per the condition.
  • Sets the arguments back as is (ensuring no modification to the user-specified args).

CheckList

  • Test
  • Docs

@apoorvajagtap apoorvajagtap requested a review from a team as a code owner October 1, 2025 09:00
@apoorvajagtap apoorvajagtap marked this pull request as draft October 1, 2025 09:01
@apoorvajagtap apoorvajagtap force-pushed the backport11-deduplicate-51942 branch 2 times, most recently from 5e73b8c to f7dd6b3 Compare October 1, 2025 12:34
@apoorvajagtap apoorvajagtap force-pushed the backport11-deduplicate-51942 branch from f7dd6b3 to dafc60e Compare October 1, 2025 12:37
@apoorvajagtap apoorvajagtap marked this pull request as ready for review October 1, 2025 12:40
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.

4 participants