Skip to content

Commit

Permalink
Merge pull request #61 from daimg/develop
Browse files Browse the repository at this point in the history
update bfe initial config
  • Loading branch information
daimg authored Mar 12, 2022
2 parents 3674613 + 2e2c673 commit 52f1933
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
10 changes: 4 additions & 6 deletions internal/bfeConfig/configs/TLSConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@ type TLSConfig struct {

func NewTLSConfig(version string) *TLSConfig {
tlsConf := &TLSConfig{
serverCertVersion: version,
tlsRuleVersion: version,
ingress2secret: setmultimap.New(),
serverCertConf: newServerCertConf(version),
tlsRuleConf: newTlsRuleConf(version),
certs: make(map[string]certConf),
ingress2secret: setmultimap.New(),
serverCertConf: newServerCertConf(version),
tlsRuleConf: newTlsRuleConf(version),
certs: make(map[string]certConf),
}

return tlsConf
Expand Down
6 changes: 2 additions & 4 deletions internal/bfeConfig/configs/clusterConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ func NewClusterConfig(version string) *ClusterConfig {
clusterBackend := make(cluster_table_conf.AllClusterBackend)

return &ClusterConfig{
gslbVersion: version,
clusterTableVersion: version,
ingress2Cluster: setmultimap.New(),
service2Cluster: setmultimap.New(),
ingress2Cluster: setmultimap.New(),
service2Cluster: setmultimap.New(),
gslbConf: gslb_conf.GslbConf{
Clusters: &gslbCluster,
Hostname: &hostname,
Expand Down
11 changes: 4 additions & 7 deletions internal/bfeConfig/configs/serverDataConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ type ServerDataConfig struct {

func NewServerDataConfig(version string) *ServerDataConfig {
return &ServerDataConfig{
hostTableVersion: version,
routeTableVersion: version,
bfeClusterConfVersion: version,
routeRuleCache: NewRouteRuleCache(),
hostTableConf: newHostTableConf(util.NewVersion()),
routeTableFile: newRouteTableConfFile(version),
bfeClusterConf: newBfeClusterConf(version),
routeRuleCache: NewRouteRuleCache(),
hostTableConf: newHostTableConf(version),
routeTableFile: newRouteTableConfFile(version),
bfeClusterConf: newBfeClusterConf(version),
}
}

Expand Down

0 comments on commit 52f1933

Please sign in to comment.