kubernetes/staging/src/k8s.io/pod-security-admission/admission/response.go

var sharedAllowedResponse

var sharedAllowedPrivilegedResponse

var sharedAllowedByUserExemptionResponse

var sharedAllowedByNamespaceExemptionResponse

var sharedAllowedByRuntimeClassExemptionResponse

func init() {}

// allowedResponse is the response used when the admission decision is allow.
func allowedResponse() *admissionv1.AdmissionResponse {}

// forbiddenResponse is the response used when the admission decision is deny for policy violations.
func forbiddenResponse(attrs api.Attributes, err error) *admissionv1.AdmissionResponse {}

// invalidResponse is the response used for namespace requests when namespace labels are invalid.
func invalidResponse(attrs api.Attributes, fieldErrors field.ErrorList) *admissionv1.AdmissionResponse {}

// errorResponse is the response used to capture generic errors.
func errorResponse(err error, status *metav1.Status) *admissionv1.AdmissionResponse {}