Documentation ¶
Index ¶
- func Allow(msg string) admission.Response
- func DenyBadRequest(err error) admission.Response
- func DenyConflict(qualifiedResource schema.GroupResource, name string, err error) admission.Response
- func DenyForbidden(qualifiedResource schema.GroupResource, name string, err error) admission.Response
- func DenyInternalError(err error) admission.Response
- func DenyInvalid(qualifiedKind schema.GroupKind, name string, errs field.ErrorList) admission.Response
- func DenyServiceUnavailable(reason string) admission.Response
- func DenyUnauthorized(reason string) admission.Response
- func IsHNCServiceAccount(user *authnv1.UserInfo) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Allow ¶
Allow is a replacement for controller-runtime's admission.Allowed() that allows you to set the message (human-readable) as opposed to the reason (machine-readable).
func DenyBadRequest ¶ added in v1.0.0
func DenyConflict ¶ added in v1.0.0
func DenyForbidden ¶ added in v1.0.0
func DenyInternalError ¶ added in v1.0.0
func DenyInvalid ¶
func DenyServiceUnavailable ¶ added in v1.0.0
func DenyUnauthorized ¶ added in v1.0.0
func IsHNCServiceAccount ¶
IsHNCServiceAccount is inspired by isGKServiceAccount from open-policy-agent/gatekeeper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.