Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed Dec 12, 2024
1 parent 75dcfbd commit ba06d2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/envoygateway/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ type Server struct {

// New returns a Server with default parameters.
func New() (*Server, error) {
return &Server{
server:= &Server{
EnvoyGateway: egv1a1.DefaultEnvoyGateway(),
Namespace: env.Lookup("ENVOY_GATEWAY_NAMESPACE", DefaultNamespace),
DNSDomain: env.Lookup("KUBERNETES_CLUSTER_DOMAIN", DefaultDNSDomain),
// the default logger
Logger: logging.DefaultLogger(egv1a1.LogLevelInfo),
Elected: &sync.WaitGroup{},
}, nil
}
server.Elected.Add(1)
return server, nil
}

// Validate validates a Server config.
Expand Down

0 comments on commit ba06d2b

Please sign in to comment.