[prompt] AWS profile, cluster name shortening (#601)
release note
Geodesic automatically installs a function to shorten the name of the Kubernetes cluster as it appears on the command line prompt. That function was updated in this release to more aggressively shorten Kubernetes cluster names that look like AWS EKS ARNs.
You can install a different function if you do not like the results. Set KUBE_PS1_CLUSTER_FUNCTION
in your Dockerfile or ~/.geodesic/preferences
to the name of a function that takes the full cluster name and outputs (to stdout
) the display name of the cluster. Set KUBE_PS1_CLUSTER_FUNCTION=echo
to disable shortening.