Skip to content

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