Merge pull request #607 from wansir/token-management

feat: token management
This commit is contained in:
KubeSphere CI Bot
2019-10-18 16:23:46 +08:00
committed by GitHub
13 changed files with 370 additions and 133 deletions

View File

@@ -258,7 +258,7 @@ func (c *Config) stripEmptyOptions() {
c.MySQLOptions = nil
}
if c.RedisOptions != nil && c.RedisOptions.Host == "" {
if c.RedisOptions != nil && c.RedisOptions.RedisURL == "" {
c.RedisOptions = nil
}

View File

@@ -63,10 +63,7 @@ func newTestConfig() *Config {
GroupSearchBase: "ou=Groups,dc=example,dc=org",
},
RedisOptions: &redis.RedisOptions{
Host: "10.10.111.110",
Port: 6379,
Password: "",
DB: 0,
RedisURL: "redis://:qwerty@localhost:6379/1",
},
S3Options: &s2is3.S3Options{
Endpoint: "http://minio.openpitrix-system.svc",