Skip to content

Commit df76db2

Browse files
olegz-codefresh123
andauthored
CR-620 rename argocd-agent to gitops (#565)
* CR-620 rename argocd-agent to gitops * CR-620 rename argocd-agent to gitops Co-authored-by: 123 <git config --global user.name 123a.aladov@codefresh.io>
1 parent adee1f6 commit df76db2

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

lib/binary/components.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ module.exports = {
3636
repo: 'venona',
3737
},
3838
},
39-
argo: {
40-
name: 'argo',
41-
description: 'Install argocd agent',
39+
gitops: {
40+
name: 'gitops',
41+
description: 'Install gitops agent',
4242
version: {
4343
prefix: '',
4444
},
4545
local: {
4646
versionFile: 'version.txt',
47-
dir: 'argo',
47+
dir: 'gitops',
4848
binary: 'argocd-agent',
4949
},
5050
remote: {

lib/interface/cli/commands/argocd/install.cmd.js renamed to lib/interface/cli/commands/gitops/install.cmd.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const { Runner, components } = require('../../../../binary');
77
const installArgoCmd = new Command({
88
root: false,
99
parent: installRoot,
10-
command: 'argocd-agent',
11-
description: 'Install argo agent',
10+
command: 'gitops',
11+
description: 'Install gitops agent',
1212
webDocs: {
13-
category: 'Argo',
13+
category: 'Gitops',
1414
title: 'Install',
1515
weight: 100,
1616
},
@@ -34,7 +34,7 @@ const installArgoCmd = new Command({
3434
commands.push(kubeConfigPath);
3535
}
3636

37-
await componentRunner.run(components.argo, commands);
37+
await componentRunner.run(components.gitops, commands);
3838
},
3939
});
4040

lib/interface/cli/commands/argocd/patch.cmd.js renamed to lib/interface/cli/commands/gitops/patch.cmd.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const { Runner, components } = require('../../../../binary');
77
const command = new Command({
88
root: false,
99
parent: applyRoot,
10-
command: 'argocd-agent',
11-
description: 'Patch argo agent',
10+
command: 'gitops',
11+
description: 'Patch gitops agent',
1212
webDocs: {
13-
category: 'Argo',
13+
category: 'Gitops',
1414
title: 'Patch',
1515
weight: 100,
1616
},
@@ -20,8 +20,8 @@ const command = new Command({
2020
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',
2121
})
2222
.example(
23-
'codefresh patch argocd-agent',
24-
'Update argocd-agent',
23+
'codefresh patch gitops',
24+
'Update gitops',
2525
);
2626
},
2727
handler: async (argv) => {
@@ -39,7 +39,7 @@ const command = new Command({
3939
commands.push(kubeConfigPath);
4040
}
4141

42-
await componentRunner.run(components.argo, commands);
42+
await componentRunner.run(components.gitops, commands);
4343
},
4444
});
4545

lib/interface/cli/commands/argocd/uninstall.cmd.js renamed to lib/interface/cli/commands/gitops/uninstall.cmd.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const { Runner, components } = require('../../../../binary');
88
const unInstallAgentCmd = new Command({
99
root: false,
1010
parent: unInstallRoot,
11-
command: 'argocd-agent',
12-
description: 'Uninstall argo agent',
11+
command: 'gitops',
12+
description: 'Uninstall gitops agent',
1313
webDocs: {
14-
category: 'Argo',
14+
category: 'Gitops',
1515
title: 'Uninstall',
1616
weight: 100,
1717
},
@@ -34,7 +34,7 @@ const unInstallAgentCmd = new Command({
3434
commands.push(kubeConfigPath);
3535
}
3636

37-
await componentRunner.run(components.argo, commands);
37+
await componentRunner.run(components.gitops, commands);
3838
},
3939
});
4040

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ async function downloadArgo(location = CODEFRESH_PATH) {
365365
),
366366
location,
367367
});
368-
const [error] = await to(downloader.download(components.argo));
368+
const [error] = await to(downloader.download(components.gitops));
369369
if (error) {
370-
const newLocation = path.join(process.cwd(), INSTALLATION_DEFAULTS.COMPONENTS_FOLDER, components.argo.local.dir, components.argo.local.binary);
370+
const newLocation = path.join(process.cwd(), INSTALLATION_DEFAULTS.COMPONENTS_FOLDER, components.gitops.local.dir, components.gitops.local.binary);
371371
if (await pathExists(newLocation)) {
372372
console.log('Failed to download installer, using binary from components folder');
373373
return path.resolve(process.cwd(), INSTALLATION_DEFAULTS.COMPONENTS_FOLDER);

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.8",
3+
"version": "0.72.9",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)