updated libs

This commit is contained in:
ston1th 2021-10-16 19:13:57 +02:00
commit f305f96195
11 changed files with 79 additions and 265 deletions

View file

@ -60,7 +60,10 @@ func NewServer(c *config.Config, log logr.Logger) (*Server, error) {
prefix: c.VIP.Prefix,
store: c.VIP.Store,
}
s.Data.Auth = types.NewAuth(c.APIServer.BasicAuth)
s.Data.AuthDisabled = c.APIServer.DisableAuth
if !s.Data.AuthDisabled {
s.Data.Auth = types.NewAuth(c.APIServer.BasicAuth)
}
if c.APIServer.TLS != nil {
cert, err := tls.LoadX509KeyPair(c.APIServer.TLS.Cert, c.APIServer.TLS.Key)