@@ -67,41 +67,41 @@ func configBootstrap(args []string) Configuration {
67
67
switch a {
68
68
case sdk .TypeAPI :
69
69
conf .API = & api.Configuration {}
70
- conf .API .Name = "cds-api-" + namesgenerator .GetRandomNameCDS (0 )
70
+ conf .API .Name = "cds-api-" + namesgenerator .GetRandomNameCDS ()
71
71
defaults .SetDefaults (conf .API )
72
72
conf .API .Database .Schema = "public"
73
73
conf .API .HTTP .Port = 8081
74
74
case sdk .TypeUI :
75
75
conf .UI = & ui.Configuration {}
76
- conf .UI .Name = "cds-ui-" + namesgenerator .GetRandomNameCDS (0 )
76
+ conf .UI .Name = "cds-ui-" + namesgenerator .GetRandomNameCDS ()
77
77
defaults .SetDefaults (conf .UI )
78
78
conf .UI .HTTP .Port = 8080
79
79
case "migrate" :
80
80
conf .DatabaseMigrate = & migrateservice.Configuration {}
81
81
defaults .SetDefaults (conf .DatabaseMigrate )
82
- conf .DatabaseMigrate .Name = "cds-migrate-" + namesgenerator .GetRandomNameCDS (0 )
82
+ conf .DatabaseMigrate .Name = "cds-migrate-" + namesgenerator .GetRandomNameCDS ()
83
83
conf .DatabaseMigrate .ServiceAPI .DB .Schema = "public"
84
84
conf .DatabaseMigrate .ServiceCDN .DB .Schema = "cdn"
85
85
conf .DatabaseMigrate .HTTP .Port = 8087
86
86
case sdk .TypeHatchery + ":local" :
87
87
conf .Hatchery .Local = & local.HatcheryConfiguration {}
88
88
defaults .SetDefaults (conf .Hatchery .Local )
89
- conf .Hatchery .Local .Name = "cds-hatchery-local-" + namesgenerator .GetRandomNameCDS (0 )
89
+ conf .Hatchery .Local .Name = "cds-hatchery-local-" + namesgenerator .GetRandomNameCDS ()
90
90
conf .Hatchery .Local .HTTP .Port = 8086
91
91
case sdk .TypeHatchery + ":kubernetes" :
92
92
conf .Hatchery .Kubernetes = & kubernetes.HatcheryConfiguration {}
93
93
defaults .SetDefaults (conf .Hatchery .Kubernetes )
94
- conf .Hatchery .Kubernetes .Name = "cds-hatchery-kubernetes-" + namesgenerator .GetRandomNameCDS (0 )
94
+ conf .Hatchery .Kubernetes .Name = "cds-hatchery-kubernetes-" + namesgenerator .GetRandomNameCDS ()
95
95
conf .Hatchery .Kubernetes .HTTP .Port = 8086
96
96
case sdk .TypeHatchery + ":marathon" :
97
97
conf .Hatchery .Marathon = & marathon.HatcheryConfiguration {}
98
98
defaults .SetDefaults (conf .Hatchery .Marathon )
99
- conf .Hatchery .Marathon .Name = "cds-hatchery-marathon-" + namesgenerator .GetRandomNameCDS (0 )
99
+ conf .Hatchery .Marathon .Name = "cds-hatchery-marathon-" + namesgenerator .GetRandomNameCDS ()
100
100
conf .Hatchery .Marathon .HTTP .Port = 8086
101
101
case sdk .TypeHatchery + ":openstack" :
102
102
conf .Hatchery .Openstack = & openstack.HatcheryConfiguration {}
103
103
defaults .SetDefaults (conf .Hatchery .Openstack )
104
- conf .Hatchery .Openstack .Name = "cds-hatchery-openstack-" + namesgenerator .GetRandomNameCDS (0 )
104
+ conf .Hatchery .Openstack .Name = "cds-hatchery-openstack-" + namesgenerator .GetRandomNameCDS ()
105
105
conf .Hatchery .Openstack .HTTP .Port = 8086
106
106
case sdk .TypeHatchery + ":swarm" :
107
107
conf .Hatchery .Swarm = & swarm.HatcheryConfiguration {}
@@ -111,20 +111,20 @@ func configBootstrap(args []string) Configuration {
111
111
Host : "unix:///var/run/docker.sock" ,
112
112
},
113
113
}
114
- conf .Hatchery .Swarm .Name = "cds-hatchery-swarm-" + namesgenerator .GetRandomNameCDS (0 )
114
+ conf .Hatchery .Swarm .Name = "cds-hatchery-swarm-" + namesgenerator .GetRandomNameCDS ()
115
115
conf .Hatchery .Swarm .HTTP .Port = 8086
116
116
conf .Hatchery .Swarm .RegistryCredentials = []swarm.RegistryCredential {{
117
117
Domain : "docker.io" ,
118
118
}}
119
119
case sdk .TypeHatchery + ":vsphere" :
120
120
conf .Hatchery .VSphere = & vsphere.HatcheryConfiguration {}
121
121
defaults .SetDefaults (conf .Hatchery .VSphere )
122
- conf .Hatchery .VSphere .Name = "cds-hatchery-vsphere-" + namesgenerator .GetRandomNameCDS (0 )
122
+ conf .Hatchery .VSphere .Name = "cds-hatchery-vsphere-" + namesgenerator .GetRandomNameCDS ()
123
123
conf .Hatchery .VSphere .HTTP .Port = 8086
124
124
case sdk .TypeHooks :
125
125
conf .Hooks = & hooks.Configuration {}
126
126
defaults .SetDefaults (conf .Hooks )
127
- conf .Hooks .Name = "cds-hooks-" + namesgenerator .GetRandomNameCDS (0 )
127
+ conf .Hooks .Name = "cds-hooks-" + namesgenerator .GetRandomNameCDS ()
128
128
conf .Hooks .HTTP .Port = 8083
129
129
case sdk .TypeVCS :
130
130
conf .VCS = & vcs.Configuration {}
@@ -146,12 +146,12 @@ func configBootstrap(args []string) Configuration {
146
146
"gitlab" : {URL : "https://gitlab.com" , Gitlab : & gitlab },
147
147
"gerrit" : {URL : "http://localhost:8080" , Gerrit : & gerrit },
148
148
}
149
- conf .VCS .Name = "cds-vcs-" + namesgenerator .GetRandomNameCDS (0 )
149
+ conf .VCS .Name = "cds-vcs-" + namesgenerator .GetRandomNameCDS ()
150
150
conf .VCS .HTTP .Port = 8084
151
151
case sdk .TypeRepositories :
152
152
conf .Repositories = & repositories.Configuration {}
153
153
defaults .SetDefaults (conf .Repositories )
154
- conf .Repositories .Name = "cds-repositories-" + namesgenerator .GetRandomNameCDS (0 )
154
+ conf .Repositories .Name = "cds-repositories-" + namesgenerator .GetRandomNameCDS ()
155
155
conf .Repositories .HTTP .Port = 8085
156
156
case sdk .TypeCDN :
157
157
conf .CDN = & cdn.Configuration {}
0 commit comments