webhook

package
v0.0.0-...-0545063 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePodPatch

func CreatePodPatch(pod *apiv1.Pod, container apiv1.Container) ([]byte, error)

func NewAdmissionResponse

func NewAdmissionResponse(pod apiv1.Pod, admissionReviewReq v1beta1.AdmissionReview) (*v1beta1.AdmissionResponse, error)

Types

type InjectableInitContainerList

type InjectableInitContainerList struct {
	Items []struct {
		Metadata struct {
			Name string `json:"name"`
		} `json:"metadata"`
		Spec apiv1.Container
	} `json:"items"`
}

func FetchInjectableInitContainers

func FetchInjectableInitContainers() InjectableInitContainerList

type PatchOperation

type PatchOperation struct {
	Op    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL