allow PSa validation with no exceptions
@@ -260,14 +260,15 @@ func (v *validator) validate() *response.RuleResponse {
return ruleResponse
}
- if v.podSecurity.Exclude != nil {
+
+ if v.podSecurity != nil {
if !isDeleteRequest(v.ctx) {
ruleResponse := v.validatePodSecurity()
return ruleResponse
}
}
- v.log.V(2).Info("invalid validation rule: either patterns or deny conditions are expected")
+ v.log.V(2).Info("invalid validation rule: podSecurity, patterns, or deny expected")
return nil
}
