1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/utils/admission/dryrun.go
Charles-Edouard Brétéché c9bbf38191
refactor: remove more admission request pointers (#6774)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-04-04 13:11:18 +08:00

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
}