updated libs
This commit is contained in:
parent
8104009bdc
commit
f305f96195
11 changed files with 79 additions and 265 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue