Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataReport ¶
type MetadataReport struct { admissionv1.AdmissionRequest NamespaceMetadata map[string]any `json:"namespaceMetadata,omitempty"` }
type Mutator ¶
type Mutator struct {
// contains filtered or unexported fields
}
Mutator is the entry point for the admission webhook.
func (*Mutator) InjectConfig ¶
func (m *Mutator) InjectConfig(c models.Configuration) error
InjectConfig injects the config.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator is the entry point for the admission webhook.
func NewValidator ¶
func NewValidator(clientset *kubernetes.Clientset, iConfig models.InsightsConfig) *Validator
func (*Validator) InjectConfig ¶
func (v *Validator) InjectConfig(c models.Configuration) error
InjectConfig injects the config.
func (*Validator) InjectDecoder ¶
InjectDecoder injects the decoder.
func (*Validator) SetWebhookFailurePolicy ¶
SetWebhookFailurePolicy parses a string into one of the webhookFailurePolicy* constants and sets the webhookFailurePolicy field of the Validator struct. SetWebhookFailurePolicy returns true if the string is parsed successfully.
Click to show internal directories.
Click to hide internal directories.