Documentation ¶
Index ¶
- Constants
- func FailureReviewRESP(reviewRESP *admissionv1.AdmissionReview, reason string)
- func GetPod(reviewRequest *admissionv1.AdmissionReview) (*corev1.Pod, error)
- func InitReviewRequestResponse(r *http.Request) (reviewRequest, reviewRESP *admissionv1.AdmissionReview, err error)
- func Mutate(w http.ResponseWriter, r *http.Request)
- func PatchReviewRESP(reviewRESP *admissionv1.AdmissionReview, patchData []byte)
- func Response(reviewRESP *admissionv1.AdmissionReview, w http.ResponseWriter)
- func Validate(w http.ResponseWriter, r *http.Request)
- type InjectMappingData
Constants ¶
View Source
const (
MustKey = "Time"
)
Variables ¶
This section is empty.
Functions ¶
func FailureReviewRESP ¶
func FailureReviewRESP(reviewRESP *admissionv1.AdmissionReview, reason string)
func GetPod ¶
func GetPod(reviewRequest *admissionv1.AdmissionReview) (*corev1.Pod, error)
func InitReviewRequestResponse ¶
func InitReviewRequestResponse(r *http.Request) (reviewRequest, reviewRESP *admissionv1.AdmissionReview, err error)
func PatchReviewRESP ¶
func PatchReviewRESP(reviewRESP *admissionv1.AdmissionReview, patchData []byte)
func Response ¶
func Response(reviewRESP *admissionv1.AdmissionReview, w http.ResponseWriter)
Types ¶
type InjectMappingData ¶
type InjectMappingData struct {
// contains filtered or unexported fields
}
func NewInjectMappingData ¶
func NewInjectMappingData(raw *corev1.Pod) *InjectMappingData
func (*InjectMappingData) GetPatchData ¶
func (inject *InjectMappingData) GetPatchData() ([]byte, error)
func (*InjectMappingData) Mutating ¶
func (inject *InjectMappingData) Mutating() *InjectMappingData
Click to show internal directories.
Click to hide internal directories.