If I have a vcluster that has a spec.displayName value that is different from metadata.name then it is confusing to know how to refer to that cluster with loft use vcluster. For example, with a vcluster with a metadata.name of my-vcluster and a spec.displayName of my-vcluster-with-displayName if I list the vclusters I see:
❯ loft list vclusters
Name Project Cluster Namespace Status Age
my-vcluster-with-displayName will-project loft-cluster loft-will-project-v-my-vcluster Ready 84s
But loft use vcluster my-vcluster-with-displayName fails:
❯ loft use vcluster my-vcluster-with-displayName
[fatal] couldn't find or access virtual cluster my-vcluster-with-displayName
This is confusing because the only thing I can see where the cli shows the metadata.name is in the suffix to the namespace but it's not obvious that loft use vcluster my-vcluster is necessary.
Would it be possible to either:
show the name in the cli output when it is different from the displayName
allow using a displayName with loft use vcluster (but perhaps display an interactive list if there are multiple clusters with the same display name)
If I have a vcluster that has a
spec.displayName
value that is different frommetadata.name
then it is confusing to know how to refer to that cluster withloft use vcluster
. For example, with a vcluster with ametadata.name
ofmy-vcluster
and aspec.displayName
ofmy-vcluster-with-displayName
if I list the vclusters I see:But
loft use vcluster my-vcluster-with-displayName
fails:This is confusing because the only thing I can see where the cli shows the
metadata.name
is in the suffix to the namespace but it's not obvious thatloft use vcluster my-vcluster
is necessary.Would it be possible to either:
displayName
withloft use vcluster
(but perhaps display an interactive list if there are multiple clusters with the same display name)