mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
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:
@@ -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...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user