Documentation ¶
Index ¶
- type ManagementClusterMutator
- func (m *ManagementClusterMutator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
- func (m *ManagementClusterMutator) GVR() schema.GroupVersionResource
- func (m *ManagementClusterMutator) MutatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.MutatingWebhook
- func (m *ManagementClusterMutator) Operations() []admissionregistrationv1.OperationType
- type Validator
- func (v *Validator) Admitters() []admission.Admitter
- func (v *Validator) GVR() schema.GroupVersionResource
- func (v *Validator) Operations() []admissionregistrationv1.OperationType
- func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.ValidatingWebhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagementClusterMutator ¶
type ManagementClusterMutator struct {
// contains filtered or unexported fields
}
ManagementClusterMutator implements admission.MutatingAdmissionWebhook.
func NewManagementClusterMutator ¶
func NewManagementClusterMutator(cache v3.PodSecurityAdmissionConfigurationTemplateCache) *ManagementClusterMutator
func (*ManagementClusterMutator) Admit ¶
func (m *ManagementClusterMutator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
Admit is the entrypoint for the mutator. Admit will return an error if it is unable to process the request.
func (*ManagementClusterMutator) GVR ¶
func (m *ManagementClusterMutator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*ManagementClusterMutator) MutatingWebhook ¶
func (m *ManagementClusterMutator) MutatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.MutatingWebhook
MutatingWebhook returns the MutatingWebhook used for this CRD.
func (*ManagementClusterMutator) Operations ¶
func (m *ManagementClusterMutator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this mutator.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator ValidatingWebhook for management clusters.
func NewValidator ¶
func NewValidator(sar authorizationv1.SubjectAccessReviewInterface, cache v3.PodSecurityAdmissionConfigurationTemplateCache) *Validator
NewValidator returns a new validator for management clusters.
func (*Validator) GVR ¶
func (v *Validator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*Validator) Operations ¶
func (v *Validator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this validator.
func (*Validator) ValidatingWebhook ¶
func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.ValidatingWebhook
ValidatingWebhook returns the ValidatingWebhook used for this CRD.