2023-02-07 16:09:15 +01:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
2023-12-22 12:13:58 +02:00
|
|
|
kyvernov2beta1 "github.com/kyverno/kyverno/api/kyverno/v2beta1"
|
2023-02-07 16:09:15 +01:00
|
|
|
)
|
|
|
|
|
2024-03-28 09:03:01 +01:00
|
|
|
// PolicyExceptionSelector is an abstract interface used to resolve poliicy exceptions
|
|
|
|
type PolicyExceptionSelector interface {
|
|
|
|
// Find returns policy exceptions matching a given policy name and rule name.
|
2023-02-07 16:09:15 +01:00
|
|
|
// Objects returned here must be treated as read-only.
|
2024-03-28 09:03:01 +01:00
|
|
|
Find(string, string) ([]*kyvernov2beta1.PolicyException, error)
|
2023-02-07 16:09:15 +01:00
|
|
|
}
|