Owing to not being a source code guru, would anyone know why using the kubectl shell in the UI requires get management.cattle.io/clusters
h
happy-orange-96237
12/05/2022, 10:30 PM
The API that we open sockets against usually requires a cluster in the path. My guess is that we call clusters so that we can verify the status of the cluster before attempting to open the shell.
I haven't looked at that specific code in a while though.
c
creamy-pencil-82913
12/05/2022, 10:32 PM
Pretty sure that’s it. Need to validate that you have access to the cluster you’re trying to shell into.
l
little-actor-95014
12/05/2022, 10:33 PM
That makes a lot of sense, as always thanks for the quick and helpful info!