Skip to content
Commit ff3ff1b1 authored by João Cunha's avatar João Cunha
Browse files

fix: allow --minify to fail w/o current-context

`kubectl config view --minify` needs a current-context
so it can show the information minified. Minify basically means to
remove all data that is not relevant to the current-context.

Since we call `kubectl config view --minify` in the root scope of the
file, every parent process that uses this file to call one of its
functions will endup reexecuting this piece of code. So by allowing
minify to fail when the context is not setup, we allow the user to call
use_kube_context before calling other scripts, which would avoid
breaking the execution.
parent 191aac4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment