You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really awesome if we could run code inside the virtual terminal when selecting a new context.
For example, When I have to install my cluster I am getting information out of the current context to apply to the cluster, like this:
function init_cluster() {
account_name=$(echo `kubie info ctx` | cut -d/ -f 2)
cluster_name=$(echo `kubie info ctx` | cut -d/ -f 3)
export account="$account_name"
export cluster="$cluster_name"
}
Could it be possible to inject such a function when changing the context?
Thanks!
The text was updated successfully, but these errors were encountered:
It would be really awesome if we could run code inside the virtual terminal when selecting a new context.
For example, When I have to install my cluster I am getting information out of the current context to apply to the cluster, like this:
Could it be possible to inject such a function when changing the context?
Thanks!
The text was updated successfully, but these errors were encountered: