Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Set default xds-apikey when not set by config.
[src/xds/xds-agent.git]
/
lib
/
xdsconfig
/
fileconfig.go
diff --git
a/lib/xdsconfig/fileconfig.go
b/lib/xdsconfig/fileconfig.go
index
add6ef7
..
2795206
100644
(file)
--- a/
lib/xdsconfig/fileconfig.go
+++ b/
lib/xdsconfig/fileconfig.go
@@
-92,5
+92,11
@@
func updateConfigFromFile(c *Config, confFile string) (*FileConfig, error) {
c.HTTPPort = fCfg.HTTPPort
}
+ // Set default apikey
+ // FIXME - rework with dynamic key
+ if fCfg.XDSAPIKey == "" {
+ fCfg.XDSAPIKey = "1234abcezam"
+ }
+
return &fCfg, nil
}