Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
8e8bbb3f
Commit
8e8bbb3f
authored
Apr 05, 2016
by
jackgr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove expandbird address and URL command line flags
parent
dc91ff26
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
deployments.go
cmd/manager/deployments.go
+7
-3
main.go
cmd/manager/main.go
+0
-4
context.go
cmd/manager/router/context.go
+0
-4
No files found.
cmd/manager/deployments.go
View file @
8e8bbb3f
...
...
@@ -83,15 +83,19 @@ func setupDependencies(c *router.Context) error {
return
nil
}
const
expanderPort
=
"8080"
const
deployerPort
=
"8080"
const
(
expanderName
=
"expander-service"
expanderPort
=
"8080"
expanderURL
=
"http://localhost:8081"
deployerPort
=
"8080"
)
func
newManager
(
c
*
router
.
Context
)
manager
.
Manager
{
cfg
:=
c
.
Config
service
:=
repo
.
NewInmemRepoService
()
cp
:=
c
.
CredentialProvider
rp
:=
repo
.
NewRepoProvider
(
service
,
repo
.
NewGCSRepoProvider
(
cp
),
cp
)
expander
:=
manager
.
NewExpander
(
util
.
GetServiceURL
(
cfg
.
ExpanderURL
,
cfg
.
E
xpanderName
,
expanderPort
),
rp
)
expander
:=
manager
.
NewExpander
(
util
.
GetServiceURL
(
expanderURL
,
e
xpanderName
,
expanderPort
),
rp
)
deployer
:=
manager
.
NewDeployer
(
util
.
GetServiceURL
(
cfg
.
DeployerURL
,
cfg
.
DeployerName
,
deployerPort
))
address
:=
strings
.
TrimPrefix
(
util
.
GetServiceURL
(
cfg
.
MongoAddress
,
cfg
.
MongoName
,
cfg
.
MongoPort
),
"http://"
)
repository
:=
createRepository
(
address
)
...
...
cmd/manager/main.go
View file @
8e8bbb3f
...
...
@@ -31,8 +31,6 @@ import (
var
(
port
=
flag
.
Int
(
"port"
,
8080
,
"The port to listen on"
)
maxLength
=
flag
.
Int64
(
"maxLength"
,
1024
,
"The maximum length (KB) of a template."
)
expanderName
=
flag
.
String
(
"expander"
,
"expandybird-service"
,
"The DNS name of the expander service."
)
expanderURL
=
flag
.
String
(
"expanderURL"
,
""
,
"The URL for the expander service."
)
deployerName
=
flag
.
String
(
"deployer"
,
"resourcifier-service"
,
"The DNS name of the deployer service."
)
deployerURL
=
flag
.
String
(
"deployerURL"
,
""
,
"The URL for the deployer service."
)
credentialFile
=
flag
.
String
(
"credentialFile"
,
""
,
"Local file to use for credentials."
)
...
...
@@ -73,8 +71,6 @@ func parseFlags() *router.Config {
return
&
router
.
Config
{
Address
:
fmt
.
Sprintf
(
":%d"
,
*
port
),
MaxTemplateLength
:
*
maxLength
,
ExpanderName
:
*
expanderName
,
ExpanderURL
:
*
expanderURL
,
DeployerName
:
*
deployerName
,
DeployerURL
:
*
deployerURL
,
CredentialFile
:
*
credentialFile
,
...
...
cmd/manager/router/context.go
View file @
8e8bbb3f
...
...
@@ -31,10 +31,6 @@ type Config struct {
Address
string
// MaxTemplateLength is the maximum length of a template.
MaxTemplateLength
int64
// ExpanderName is the DNS name of the expansion service.
ExpanderName
string
// ExpanderURL is the expander service's URL.
ExpanderURL
string
// DeployerName is the deployer's DNS name
DeployerName
string
// DeployerURL is the deployer's URL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment