apiserver/pkg/apis/audit/validation
Cao Shufeng 4905dd9b0c Provide a way to omit Event stages in audit policy
Updates https://github.com/kubernetes/kubernetes/issues/48561
This provide a way to omit some stages for each audit policy rule.

For example:
  apiVersion: audit.k8s.io/v1beta1
  kind: Policy
  - level: Metadata
    resources:
       - group: "rbac.authorization.k8s.io"
         resources: ["roles"]
    omitStages:
      - "RequestReceived"

RequestReceived stage will not be emitted to audit backends with
previous config.

Kubernetes-commit: 47ba91450fbe7d9002bfc9d4a48a73256252821f
2017-09-04 14:03:48 +00:00
..
BUILD Use buildozer to delete licenses() rules except under third_party/ 2017-08-29 13:15:24 +00:00
validation.go Provide a way to omit Event stages in audit policy 2017-09-04 14:03:48 +00:00
validation_test.go Provide a way to omit Event stages in audit policy 2017-09-04 14:03:48 +00:00