diff --git a/src/renderer/components/+cluster-settings/status.tsx b/src/renderer/components/+cluster-settings/status.tsx index ff0436598c..b868ab5064 100644 --- a/src/renderer/components/+cluster-settings/status.tsx +++ b/src/renderer/components/+cluster-settings/status.tsx @@ -2,12 +2,21 @@ import React from "react"; import { Cluster } from "../../../main/cluster"; import { SubTitle } from "../layout/sub-title"; import { Table, TableCell, TableRow } from "../table"; +import { autobind } from "../../utils"; +import { shell } from "electron"; interface Props { cluster: Cluster; } export class Status extends React.Component { + + @autobind() + openKubeconfig() { + const { cluster } = this.props; + shell.showItemInFolder(cluster.kubeConfigPath) + } + renderStatusRows() { const { cluster } = this.props; const rows = [ @@ -27,6 +36,10 @@ export class Status extends React.Component { ); })} + + Kubeconfig + {cluster.kubeConfigPath} + ); }