Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRequestInvalid = errors.New("invalid request")
)
View Source
var (
ErrValidationFailed = "failed validation"
)
Functions ¶
This section is empty.
Types ¶
type Operation ¶ added in v0.1.0
type Operation struct { Log *logger.Logger Resource client.Object PodSpec *corev1.PodSpec Validations []*validate.Validation Review *admissionv1.AdmissionReview // functions OperationStep []OperationStep RegisterFunc func() // admission for this operation Patches []map[string]string Permitted bool ResponseError error ResponseReason metav1.StatusReason StatusCode int }
type OperationStep ¶ added in v0.1.0
type Webhook ¶
type Webhook struct { Certificate *tls.Certificate Client kubernetes.Interface Log *logger.Logger Router *mux.Router Port int }
func NewWebhook ¶
Click to show internal directories.
Click to hide internal directories.