mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Switch to defaulting to kubectl
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
9dc89a9a3a
commit
8d77ada7d3
4 files changed
+14
-7
No files matched your search
@@ -45,9 +45,12 @@ export interface NodeMenuProps extends Renderer.Component.KubeObjectMenuProps<No
|
||||
export function NodeMenu(props: NodeMenuProps) {
|
||||
const { object: node, toolbar } = props;
|
||||
|
||||
if (!node) return null;
|
||||
if (!node) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const nodeName = node.getName();
|
||||
const kubectlPath = JSON.stringify(App.Preferences.getKubectlPath()); // this call escapes spaces and quotes
|
||||
const kubectlPath = App.Preferences.getKubectlPath() || "kubectl";
|
||||
|
||||
const sendToTerminal = (command: string) => {
|
||||
terminalStore.sendCommand(command, {
|
||||
|
||||
Reference in new issue
Block a user