mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Showing default kubectl binary path
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
75825d0628
commit
935a9e04a5
@ -59,8 +59,8 @@ export class UserStore extends BaseStore<UserStoreModel> {
|
|||||||
colorTheme: UserStore.defaultTheme,
|
colorTheme: UserStore.defaultTheme,
|
||||||
downloadMirror: "default",
|
downloadMirror: "default",
|
||||||
downloadKubectlBinaries: true, // Download kubectl binaries matching cluster version
|
downloadKubectlBinaries: true, // Download kubectl binaries matching cluster version
|
||||||
downloadBinariesPath: "",
|
downloadBinariesPath: this.getDefaultKubectlPath(),
|
||||||
kubectlBinariesPath: "$PATH/kubectl"
|
kubectlBinariesPath: ""
|
||||||
};
|
};
|
||||||
|
|
||||||
get isNewVersion() {
|
get isNewVersion() {
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import { Input } from '../input';
|
|||||||
import { SubTitle } from '../layout/sub-title';
|
import { SubTitle } from '../layout/sub-title';
|
||||||
import { UserPreferences, userStore } from '../../../common/user-store';
|
import { UserPreferences, userStore } from '../../../common/user-store';
|
||||||
import { observer } from 'mobx-react';
|
import { observer } from 'mobx-react';
|
||||||
|
import { Kubectl } from '../../../main/kubectl';
|
||||||
|
|
||||||
export const KubectlBinaries = observer(({ preferences }: { preferences: UserPreferences }) => {
|
export const KubectlBinaries = observer(({ preferences }: { preferences: UserPreferences }) => {
|
||||||
const [downloadPath, setDownloadPath] = useState(preferences.downloadBinariesPath || "");
|
const [downloadPath, setDownloadPath] = useState(preferences.downloadBinariesPath || "");
|
||||||
@ -31,7 +32,7 @@ export const KubectlBinaries = observer(({ preferences }: { preferences: UserPre
|
|||||||
onBlur={save}
|
onBlur={save}
|
||||||
/>
|
/>
|
||||||
<small className="hint">
|
<small className="hint">
|
||||||
<Trans>Default: $PATH/kubectl</Trans>
|
<Trans>Default:</Trans>{" "}{Kubectl.bundledKubectlPath}
|
||||||
</small>
|
</small>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user