mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
* refactor: exception selector interface Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
12 lines
420 B
Go
12 lines
420 B
Go
package api
|
|
|
|
import (
|
|
kyvernov2beta1 "github.com/kyverno/kyverno/api/kyverno/v2beta1"
|
|
)
|
|
|
|
// 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.
|
|
// Objects returned here must be treated as read-only.
|
|
Find(string, string) ([]*kyvernov2beta1.PolicyException, error)
|
|
}
|