Kubewarden SDK Documentation

Function reject​Request(message:​code:​)

public func rejectRequest(message: String?, code: Int?) -> String  

This function rejects the admission request as invalid

Parameters

message String?

the optional message to provide to the user

code Int?

the optional code identifying the rejection

Returns

A ValidationResponse object serialized to JSON