mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
fix auditsink validation output
This commit is contained in:
parent
9d0a6d0fc6
commit
0438cdf413
@ -38,8 +38,8 @@ func ValidateAuditSink(as *auditregistration.AuditSink) field.ErrorList {
|
||||
// ValidateAuditSinkSpec validates the sink spec for audit
|
||||
func ValidateAuditSinkSpec(s auditregistration.AuditSinkSpec, fldPath *field.Path) field.ErrorList {
|
||||
var allErrs field.ErrorList
|
||||
allErrs = append(allErrs, ValidatePolicy(s.Policy, field.NewPath("policy"))...)
|
||||
allErrs = append(allErrs, ValidateWebhook(s.Webhook, field.NewPath("webhook"))...)
|
||||
allErrs = append(allErrs, ValidatePolicy(s.Policy, fldPath.Child("policy"))...)
|
||||
allErrs = append(allErrs, ValidateWebhook(s.Webhook, fldPath.Child("webhook"))...)
|
||||
return allErrs
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user