Faster way to switch between clusters and namespaces in kubectl
APACHE-2.0 License
Bot releases are hidden (Show)
Published by ahmetb almost 5 years ago
fzf
is now called with --no-preview
option to prevent the preview pane from showing up (#163)kubectx -d
) (#178)kubectl ctx
and kubectl ns
)Published by ahmetb about 5 years ago
-c
/--current
flag to print current context or namespace.Published by ahmetb over 5 years ago
Published by ahmetb almost 6 years ago
Published by ahmetb about 6 years ago
--with-short-names
and fzf(1)Published by ahmetb about 6 years ago
Published by ahmetb about 6 years ago
-d
Published by ahmetb over 6 years ago
SECURITY FIX: An issue that made it possible to do arbitrary code execution
through kubens is fixed. A carefully crafted kubeconfig file that contains a
context name with a slash (/) character and a crafted "namespace" field
could cause any writable file to be replaced with arbitrary contents set in,
the "namespace" field, leading to arbitrary code execution when used to
replace contents of executable files.
Since kubectx/kubens are not used in any production systems, this does not
warrant a CVE. Please upgrade your kubens to use the patched version.
This is fixed in #37 by @jvassev. See the issue for more information.
FEATURE: Renaming context will now overwrite if the specified name already
exists, through deleting the existing context entry in kubeconfig. (#25)
FEATURE: Deleting context entries in kubeconfig with "kubectx -d NAME" ('.'
for current). This only deletes the context entry and does not touch 'users'
and 'clusters' keys in kubeconfig (and therefore might leak those entries).
Use this only if you do not care about the extra values in your kubeconfig.
(#23, #38)
Published by ahmetb over 6 years ago
Published by ahmetb almost 7 years ago
kubectx A=B
now does a rename instead ofPublished by ahmetb almost 7 years ago
Published by ahmetb over 7 years ago