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
Is there a way to set the prefix myself for each file store or path? Perhaps a regex pattern?
right now I see "auth/admin" x 5 when I run switch and I have to inspect in the preview which cluster I'm connecting to.
But I want the directory above it to be the prefix so when I run switch, I can see:
ie) cluster1/admin
My kubeconfig file layout is like:
/clusterrepo/clusters/cluster1/auth/kubeconfig
/clusterrepo/clusters/cluster2/auth/kubeconfig
/clusterrepo/clusters/cluster3/auth/kubeconfig
/clusterrepo/clusters/cluster4/auth/kubeconfig
/clusterrepo/clusters/cluster5/auth/kubeconfig
Right now I've had to create symlinks in my own homedir as a workaround, but I'd prefer a native kubeswitch filestore prefix to do it.
Note: I can't alter the filestore repo with the kubeconfigs.
Thanks!
Yes, the current assumption is that you can alter the filesystem path, so you can set either a unique parent directory or context name. Unfortunately I don't think that's something worth investing time for me personally ias that is a very specialized scenario which might only benefit very few users. I someone has the same problem and wants to contribute a fix, please feel very welcome though.
Thanks for reporting and I hope you are ok with the decision.
Is there a way to set the prefix myself for each file store or path? Perhaps a regex pattern?
right now I see "auth/admin" x 5 when I run switch and I have to inspect in the preview which cluster I'm connecting to.
But I want the directory above it to be the prefix so when I run switch, I can see:
ie) cluster1/admin
My kubeconfig file layout is like:
/clusterrepo/clusters/cluster1/auth/kubeconfig
/clusterrepo/clusters/cluster2/auth/kubeconfig
/clusterrepo/clusters/cluster3/auth/kubeconfig
/clusterrepo/clusters/cluster4/auth/kubeconfig
/clusterrepo/clusters/cluster5/auth/kubeconfig
Right now I've had to create symlinks in my own homedir as a workaround, but I'd prefer a native kubeswitch filestore prefix to do it.
Note: I can't alter the filestore repo with the kubeconfigs.
Thanks!
kind: SwitchConfig
version: v1alpha1
kubeconfigName: "kubeconfig"
kubeconfigStores:
showPrefix: true
paths:
The text was updated successfully, but these errors were encountered: