-
Notifications
You must be signed in to change notification settings - Fork 1
[FEAT cloudctl] - Improved AuthInfo merging and deduplication logic #54
Copy link
Copy link
Open
Labels
backlogReady for sprint planning; triggers project additionReady for sprint planning; triggers project additionenhancementImprovements to existing features, logic, or performance.Improvements to existing features, logic, or performance.featureNew functional capabilities or significant additions to the CLI.New functional capabilities or significant additions to the CLI.kubeconfigSpecifically related to kubeconfig parsing, merging, or managementSpecifically related to kubeconfig parsing, merging, or managementneeds-refinementNeeds scoping before implementationNeeds scoping before implementation
Metadata
Metadata
Assignees
Labels
backlogReady for sprint planning; triggers project additionReady for sprint planning; triggers project additionenhancementImprovements to existing features, logic, or performance.Improvements to existing features, logic, or performance.featureNew functional capabilities or significant additions to the CLI.New functional capabilities or significant additions to the CLI.kubeconfigSpecifically related to kubeconfig parsing, merging, or managementSpecifically related to kubeconfig parsing, merging, or managementneeds-refinementNeeds scoping before implementationNeeds scoping before implementation
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Sprint Backlog
[FEAT cloudctl] - Improved AuthInfo merging and deduplication logic
Labels
Priority
(Medium) I'm annoyed but I'll live
User Story
Description
The current
authInfoEqualandgenerateAuthInfoKeylogic incmd/sync.gohandles basic deduplication by comparing core credential fields while ignoring volatile tokens. However, as the number of clusters grows, the deduplication should be more robust. It should specifically focus on:kubeloginarguments and ensuring they are consistently ordered during comparison.Acceptance Criteria
authInfoEqualandgenerateAuthInfoKeyincmd/sync.gofor better readability and extensibility.mergeKubeconfigto prefer existing user names from the local config when a matchingAuthInfois found.ExecConfigfields (Env, InteractiveMode, etc.) are considered in the comparison if they affect authentication.cmd/sync_test.gocovering edge cases like identical credentials with different user names.maps.Equaland other modern Go 1.25 idioms for cleaner comparisons.Reference Issues
None