Skip to content

ROX-15724: rename kubeconfig contexts for easier merge #113

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

parametalol
Copy link
Contributor

Having a kubeconfig with:

contexts:
- name: ctx1
  context:
    user: username
    cluster: clustername
users:
- name: username
clusters:
- name: clustername
current-context: ctx1

The rename-kubeconfig-ctx.jq script renames the entities as the following:

contexts:
- name: clustername // <- ctx1
  context:
    user: username@clustername // <- username
    cluster: clustername
users:
- name: username@clustername // <- username
clusters:
- name: clustername
current-context: clustername // <- ctx1

@parametalol
Copy link
Contributor Author

The script file is not found, need some work.

@parametalol parametalol marked this pull request as draft May 5, 2025 09:04
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.

1 participant