You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[0.0.15] - 2024-10-02
Added
List Contexts Option: Added the -ListContexts parameter, allowing users to list all available contexts in the kubeconfig.
Export Contexts Option: Introduced the -ExportContexts parameter for exporting specific contexts from the kubeconfig. This can be combined with the -DestinationConfig parameter to specify the output path.
Preserve Current Context: Added logic to preserve the current context in the cleaned kubeconfig unless it belongs to a removed cluster.
Changed
Reusable DestinationConfig: The -DestinationConfig parameter is now shared between the merge and export functionalities, simplifying the user experience.
Fixed
Current Context Handling: Fixed an issue where the current context could be removed inadvertently during cleanup. The script now retains the current context unless its associated cluster is removed.