Merge pull request #47043 from CaoShuFeng/validate_audit

Automatic merge from submit-queue

Add Validate() function for audit options

**Release note**:

```
NONE
```
Fixes: #47114
This commit is contained in:
Kubernetes Submit Queue
2017-07-04 08:48:20 -07:00
committed by GitHub
3 changed files with 50 additions and 12 deletions

View File

@@ -63,6 +63,9 @@ func (options *ServerRunOptions) Validate() []error {
if errs := options.Authentication.Validate(); len(errs) > 0 {
errors = append(errors, errs...)
}
if errs := options.Audit.Validate(); len(errs) > 0 {
errors = append(errors, errs...)
}
if errs := options.InsecureServing.Validate("insecure-port"); len(errs) > 0 {
errors = append(errors, errs...)
}