Add kubectl/helm download mirror select to preferences (#185)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-04-01 07:19:10 +03:00
1 parent f0dd4095ac
commit 5c2e64b487
7 files changed
+73 -81

No files matched your search

+2 -2
View File
@@ -95,7 +95,7 @@ export class LensBinary {
return exists
}
protected async ensureBinary() {
public async ensureBinary() {
const isValid = await this.checkBinary()
if(!isValid) {
await this.downloadBinary().catch((error) => { logger.error(error) });
@@ -129,7 +129,7 @@ export class LensBinary {
})
}
public async downloadBinary() {
protected async downloadBinary() {
const binaryPath = this.tarPath || this.getBinaryPath()
await ensureDir(this.getBinaryDir(), 0o755)