Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Draft
parametalol wants to merge 3 commits intomasterstackrox/workflow:masterfrom
michael/rename-k8s-ctxstackrox/workflow:michael/rename-k8s-ctxCopy head branch name to clipboard
Draft

ROX-15724: rename kubeconfig contexts for easier merge#113
parametalol wants to merge 3 commits intomasterstackrox/workflow:masterfrom
michael/rename-k8s-ctxstackrox/workflow:michael/rename-k8s-ctxCopy head branch name to clipboard

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

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.