提交 49578509 编写于 作者: J Jeff 提交者: zryfish

add ks-apiserver options

上级 e4d84b02
......@@ -182,7 +182,13 @@ func CreateClientSet(conf *apiserverconfig.Config, stopCh <-chan struct{}) error
csop.SetDevopsOptions(conf.DevopsOptions).
SetKubernetesOptions(conf.KubernetesOptions).
SetMySQLOptions(conf.MySQLOptions)
SetMySQLOptions(conf.MySQLOptions).
SetLdapOptions(conf.LdapOptions).
SetS3Options(conf.S3Options).
SetOpenPitrixOptions(conf.OpenPitrixOptions).
SetPrometheusOptions(conf.MonitoringOptions).
SetRedisOptions(conf.RedisOptions)
client.NewClientSetFactory(csop, stopCh)
......
......@@ -89,6 +89,11 @@ func (c *ClientSetOptions) SetPrometheusOptions(options *prometheus.PrometheusOp
return c
}
func (c *ClientSetOptions) SetSonarQubeOptions(options *sonarqube.SonarQubeOptions) *ClientSetOptions {
c.sonarqubeOptions = options
return c
}
// ClientSet provide best of effort service to initialize clients,
// but there is no guarantee to return a valid client instance,
// so do validity check before use
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册