Switch to defaulting to kubectl

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-09-13 15:07:23 -04:00
1 parent 9dc89a9a3a
commit 8d77ada7d3
4 files changed
+14 -7

No files matched your search

+5 -2
View File
@@ -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, {
+2 -1
View File
@@ -49,8 +49,9 @@ export class PodAttachMenu extends React.Component<PodAttachMenuProps> {
async attachToPod(container?: string) {
const { object: pod } = this.props;
const kubectlPath = App.Preferences.getKubectlPath() || "kubectl";
const commandParts = [
JSON.stringify(App.Preferences.getKubectlPath()), // this call escapes spaces and quotes
kubectlPath,
"attach",
"-i",
"-t",
+2 -1
View File
@@ -49,8 +49,9 @@ export class PodShellMenu extends React.Component<PodShellMenuProps> {
async execShell(container?: string) {
const { object: pod } = this.props;
const kubectlPath = App.Preferences.getKubectlPath() || "kubectl";
const commandParts = [
JSON.stringify(App.Preferences.getKubectlPath()), // this call escapes spaces and quotes
kubectlPath,
"exec",
"-i",
"-t",