Skip to content

Commit 2323a48

Browse files
fixed cluster acceptance test (#562)
* fixed cluster acceptance test
1 parent 621fa87 commit 2323a48

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,18 @@ async function downloadHybridComponents(location) {
413413
console.log(`Kubernetes registrator installer downloaded successfully ${location}`);
414414
}
415415

416-
async function runClusterAcceptanceTests({ kubeNamespace, kubeConfigPath }) {
416+
async function runClusterAcceptanceTests({ kubeNamespace, kubeContextName, kubeConfigPath }) {
417417
const binLocation = await downloadVeonona();
418418
const componentRunner = new Runner(binLocation);
419419
const cmd = ['test', '--log-formtter', DefaultLogFormatter];
420420
if (kubeNamespace) {
421421
cmd.push('--kube-namespace');
422422
cmd.push(kubeNamespace);
423423
}
424+
if (kubeContextName) {
425+
cmd.push('--kube-context-name');
426+
cmd.push(kubeContextName);
427+
}
424428
if (kubeConfigPath) {
425429
cmd.push('--kube-config-path');
426430
cmd.push(kubeConfigPath);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ const initCmd = new Command({
409409
installationPlan.addStep({
410410
name: 'run cluster acceptance tests',
411411
func: runClusterAcceptanceTests,
412-
arg: { kubeNamespace, kubeConfigPath },
412+
arg: { kubeNamespace, kubeConfigPath, kubeContextName },
413413
installationEvent: installationProgress.events.ACCEPTANCE_TESTS_RAN,
414414
condition: !skipClusterTest,
415415
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.72.7",
3+
"version": "0.72.8",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)