Add support for viewing 'User-supplied values' of helm release (#1862)

Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
osddeitfandSebastian Malton authored and GitHub committed 2021-04-20 11:47:38 -04:00
1 parent a2be178191
commit 04d3cd5b14
6 files changed
+33 -15

No files matched your search

+2 -2
View File
@@ -91,9 +91,9 @@ export class HelmReleaseManager {
return stdout;
}
public async getValues(name: string, namespace: string, pathToKubeconfig: string) {
public async getValues(name: string, namespace: string, all: boolean, pathToKubeconfig: string) {
const helm = await helmCli.binaryPath();
const { stdout, } = await promiseExec(`"${helm}" get values ${name} --all --output yaml --namespace ${namespace} --kubeconfig ${pathToKubeconfig}`).catch((error) => { throw(error.stderr);});
const { stdout, } = await promiseExec(`"${helm}" get values ${name} ${all? "--all": ""} --output yaml --namespace ${namespace} --kubeconfig ${pathToKubeconfig}`).catch((error) => { throw(error.stderr);});
return stdout;
}