Skip to content

Commit e7f1233

Browse files
feat(runner): add codefreshToken as output for helm-based installation (#830)
Signed-off-by: mikhail-klimko <[email protected]>
1 parent 6fb1f59 commit e7f1233

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

.github/pull_request_template.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## What
2+
3+
## Why
4+
5+
## Notes

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ function printInstallationOptionsSummary({
6767
dryRun,
6868
shouldUseHelm,
6969
}) {
70-
let summary = `\n${colors.green('Installation options summary:')}
70+
let summary = `\n${colors.green('Installation options summary:')}
7171
1. Kubernetes Context: ${colors.cyan(kubeContextName)}
7272
2. Kubernetes Namespace: ${colors.cyan(kubeNamespace)}
7373
3. Set this as default account runtime-environment: ${colors.cyan(!!shouldMakeDefaultRe)}
7474
4. Execute demo pipeline after install: ${colors.cyan(!!shouldExecutePipeline)}
7575
5. HTTP proxy: ${httpProxy ? colors.cyan(httpProxy) : 'none'}
76-
6. HTTPS proxy: ${httpsProxy ? colors.cyan(httpsProxy) : 'none'}
77-
7. No proxy: ${noProxy ? colors.cyan(noProxy) : 'none'}
76+
6. HTTPS proxy: ${httpsProxy ? colors.cyan(httpsProxy) : 'none'}
77+
7. No proxy: ${noProxy ? colors.cyan(noProxy) : 'none'}
7878
`;
7979

8080
if (appProxy) {
@@ -845,7 +845,7 @@ const initCmd = new Command({
845845
return true;
846846
}
847847

848-
const monitoringToken = _.get(sdk, 'config.context.token');
848+
const userToken = _.get(sdk, 'config.context.token');
849849

850850
// install monitoring
851851
installationPlan.addStep({
@@ -862,7 +862,7 @@ const initCmd = new Command({
862862
'set-file': setFile,
863863
'dry-run': dryRun,
864864
'bypass-download': bypassDownload,
865-
token: monitoringToken,
865+
token: userToken,
866866
verbose,
867867
noExit: true, // to prevent if from calling inner: process.exit()
868868
url,
@@ -891,7 +891,7 @@ const initCmd = new Command({
891891
const monitor = {
892892
enabled: shouldInstallMonitoringFn(),
893893
clusterId: kubeContextName,
894-
token: monitoringToken,
894+
token: userToken,
895895
};
896896

897897
const global = {
@@ -902,6 +902,7 @@ const initCmd = new Command({
902902
agentName: agent.name,
903903
accountId: agent.account,
904904
runtimeName: runtimeNameContext,
905+
codefreshToken: userToken,
905906
keys,
906907
};
907908

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.84.7",
3+
"version": "0.84.8",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,
@@ -115,4 +115,4 @@
115115
"./test-setup.js"
116116
]
117117
}
118-
}
118+
}

0 commit comments

Comments
 (0)