mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Still more awaits
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
392d618d5f
commit
4a0ba52282
@ -56,7 +56,7 @@ export class HelmReleaseManager {
|
|||||||
public async upgradeRelease(name: string, chart: string, values: any, namespace: string, version: string, cluster: Cluster){
|
public async upgradeRelease(name: string, chart: string, values: any, namespace: string, version: string, cluster: Cluster){
|
||||||
const helm = await helmCli.binaryPath();
|
const helm = await helmCli.binaryPath();
|
||||||
const fileName = tempy.file({name: "values.yaml"});
|
const fileName = tempy.file({name: "values.yaml"});
|
||||||
const proxyKubeconfig = cluster.getProxyKubeconfigPath();
|
const proxyKubeconfig = await cluster.getProxyKubeconfigPath();
|
||||||
|
|
||||||
await fs.promises.writeFile(fileName, yaml.safeDump(values));
|
await fs.promises.writeFile(fileName, yaml.safeDump(values));
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ export class HelmReleaseManager {
|
|||||||
|
|
||||||
public async getRelease(name: string, namespace: string, cluster: Cluster) {
|
public async getRelease(name: string, namespace: string, cluster: Cluster) {
|
||||||
const helm = await helmCli.binaryPath();
|
const helm = await helmCli.binaryPath();
|
||||||
const proxyKubeconfig = cluster.getProxyKubeconfigPath();
|
const proxyKubeconfig = await cluster.getProxyKubeconfigPath();
|
||||||
|
|
||||||
const { stdout } = await promiseExec(`"${helm}" status ${name} --output json --namespace ${namespace} --kubeconfig ${proxyKubeconfig}`).catch((error) => { throw(error.stderr);});
|
const { stdout } = await promiseExec(`"${helm}" status ${name} --output json --namespace ${namespace} --kubeconfig ${proxyKubeconfig}`).catch((error) => { throw(error.stderr);});
|
||||||
const release = JSON.parse(stdout);
|
const release = JSON.parse(stdout);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user