1. Remove ks-iam standalone binary, move it to ks-apiserver 2. Generate all devops apis inside kubesphere repository, no need to import s2ioperator. 3. Reorganize ldap code, make it more flexible to use.
21 lines
769 B
Go
21 lines
769 B
Go
package options
|
|
|
|
// Validate validates server run options, to find
|
|
// options' misconfiguration
|
|
func (s *ServerRunOptions) Validate() []error {
|
|
var errors []error
|
|
|
|
errors = append(errors, s.GenericServerRunOptions.Validate()...)
|
|
errors = append(errors, s.DevopsOptions.Validate()...)
|
|
errors = append(errors, s.KubernetesOptions.Validate()...)
|
|
errors = append(errors, s.MySQLOptions.Validate()...)
|
|
errors = append(errors, s.ServiceMeshOptions.Validate()...)
|
|
errors = append(errors, s.MonitoringOptions.Validate()...)
|
|
errors = append(errors, s.SonarQubeOptions.Validate()...)
|
|
errors = append(errors, s.S3Options.Validate()...)
|
|
errors = append(errors, s.OpenPitrixOptions.Validate()...)
|
|
errors = append(errors, s.LoggingOptions.Validate()...)
|
|
|
|
return errors
|
|
}
|