mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
c9bbf38191
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
9 lines
180 B
Go
9 lines
180 B
Go
package admission
|
|
|
|
import (
|
|
admissionv1 "k8s.io/api/admission/v1"
|
|
)
|
|
|
|
func IsDryRun(request admissionv1.AdmissionRequest) bool {
|
|
return request.DryRun != nil && *request.DryRun
|
|
}
|