fix gce.conf multi-value parameter processing

This commit is contained in:
Minhan Xia
2017-12-05 11:29:35 -08:00
parent db2977fb11
commit af42fbd3d0
3 changed files with 28 additions and 9 deletions

View File

@@ -149,6 +149,7 @@ type GCECloud struct {
AlphaFeatureGate *AlphaFeatureGate
}
// TODO: replace gcfg with json
type ConfigGlobal struct {
TokenURL string `gcfg:"token-url"`
TokenBody string `gcfg:"token-body"`
@@ -173,7 +174,7 @@ type ConfigGlobal struct {
// located in (i.e. where the controller will be running). If this is
// blank, then the local zone will be discovered via the metadata server.
LocalZone string `gcfg:"local-zone"`
// Possible values: List of api names separated by comma. Default to none.
// Default to none.
// For example: MyFeatureFlag
AlphaFeatures []string `gcfg:"alpha-features"`
}