@@ -11,7 +11,7 @@ const installArgoCmd = new Command({
11
11
root : false ,
12
12
parent : installRoot ,
13
13
command : 'gitops <provider>' ,
14
- description : 'Install gitops agent ' ,
14
+ description : 'Install gitops' ,
15
15
webDocs : {
16
16
category : 'Gitops' ,
17
17
title : 'Install' ,
@@ -21,14 +21,14 @@ const installArgoCmd = new Command({
21
21
. env ( 'CF_ARG_' )
22
22
. positional ( 'provider' , {
23
23
describe : 'Gitops provider' ,
24
- choices : [ 'argocd ' , 'argocd-agent' ] ,
24
+ choices : [ 'codefresh ' , 'argocd-agent' ] ,
25
25
required : true ,
26
26
} )
27
27
. option ( 'git-integration' , {
28
28
describe : 'Name of git integration in Codefresh' ,
29
29
} )
30
30
. option ( 'codefresh-integration' , {
31
- describe : 'Name of argocd integration in Codefresh' ,
31
+ describe : 'Name of gitops integration in Codefresh' ,
32
32
} )
33
33
. option ( 'argo-host' , {
34
34
describe : 'Host of argocd installation' ,
@@ -44,7 +44,7 @@ const installArgoCmd = new Command({
44
44
describe : 'Password of existing argocd installation. Should be used with argo-username' ,
45
45
} )
46
46
. option ( 'update' , {
47
- describe : 'Update argocd integration if exists' ,
47
+ describe : 'Update gitops integration if exists' ,
48
48
} )
49
49
. option ( 'kube-config-path' , {
50
50
describe : 'Path to kubeconfig file (default is $HOME/.kube/config)' ,
@@ -75,11 +75,11 @@ const installArgoCmd = new Command({
75
75
} )
76
76
// argocd options
77
77
. option ( 'install-manifest' , {
78
- describe : 'url of argocd install manifest' ,
78
+ describe : 'Url of argocd install manifest' ,
79
79
default : 'https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml' ,
80
80
} )
81
81
. option ( 'set-argo-password' , {
82
- describe : 'set password for admin user of new argocd installation' ,
82
+ describe : 'Set password for admin user of new argocd installation' ,
83
83
} ) ,
84
84
handler : async ( argv ) => {
85
85
let {
@@ -97,12 +97,17 @@ const installArgoCmd = new Command({
97
97
'set-argo-password' : setArgoPassword ,
98
98
} = argv ;
99
99
100
- if ( provider === 'argocd ' ) {
100
+ if ( provider === 'codefresh ' ) {
101
101
if ( ! setArgoPassword ) {
102
102
console . error ( '\nMissing required argument: set-argo-password' ) ;
103
103
process . exit ( 1 ) ;
104
104
}
105
105
106
+ if ( ! kubeNamespace ) {
107
+ console . error ( '\nMissing required argument: kube-namespace' ) ;
108
+ process . exit ( 1 ) ;
109
+ }
110
+
106
111
const result = await installArgocd ( {
107
112
installManifest,
108
113
kubeNamespace,
0 commit comments