Skip to content

Commit adee1f6

Browse files
add values support for app-proxy and monitor (#564)
1 parent 2323a48 commit adee1f6

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

lib/interface/cli/commands/hybrid/helper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ async function installAppProxy({
625625
kubeConfigPath, // --kube-config-path
626626
verbose, // --verbose
627627
logFormatting = DefaultLogFormatter, // --log-formtter
628+
valuesFile, // --values
628629
}) {
629630
const binLocation = await downloadVeonona();
630631
const componentRunner = new Runner(binLocation);
@@ -648,6 +649,9 @@ async function installAppProxy({
648649
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0') {
649650
cmd.push('--insecure');
650651
}
652+
if (valuesFile) {
653+
cmd.push(`--values=${valuesFile}`);
654+
}
651655
const cp = componentRunner.runAndAttach(components.venona, cmd, true);
652656
const chunks = [];
653657
let ingressIp;

lib/interface/cli/commands/hybrid/init.cmd.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ const initCmd = new Command({
601601
kubeNamespace,
602602
verbose,
603603
kubeConfigPath,
604+
valuesFile,
604605
});
605606
installationPlan.addContext('appProxyIP', `http://${appProxyIP}`);
606607
},
@@ -683,6 +684,7 @@ const initCmd = new Command({
683684
verbose,
684685
noExit: true, // to prevent if from calling inner: process.exit()
685686
url,
687+
values: valuesFile,
686688
},
687689
successMessage: 'Successfully installed cluster monitoring',
688690
installationEvent: installationProgress.events.MONITOR_INSTALLED,

lib/interface/cli/commands/monitor/install.cmd.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ const installMonitorCmd = new Command({
3737
describe: 'The prefix for the container registry that will be used for pulling the required components images. Example: --docker-registry="docker.io"',
3838
type: 'string',
3939
})
40+
.option('values', {
41+
describe: 'specify values in a YAML file',
42+
})
4043
.option('verbose', {
4144
describe: 'Print logs',
4245
}),
@@ -50,6 +53,7 @@ const installMonitorCmd = new Command({
5053
'kube-namespace': kubeNamespace,
5154
'docker-registry': dockerRegistry,
5255
verbose,
56+
values: valuesFile,
5357
// noExit,
5458
} = argv;
5559
const binLocation = await downloadVeonona();
@@ -98,6 +102,9 @@ const installMonitorCmd = new Command({
98102
if (dockerRegistry) {
99103
commands.push(`--docker-registry=${dockerRegistry}`);
100104
}
105+
if (valuesFile) {
106+
commands.push(`--values=${valuesFile}`);
107+
}
101108

102109
await componentRunner.run(components.venona, commands);
103110
},

0 commit comments

Comments
 (0)