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 Mutator
- func (m *Mutator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
- func (m *Mutator) GVR() schema.GroupVersionResource
- func (m *Mutator) MutatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) *admissionregistrationv1.MutatingWebhook
- func (m *Mutator) Operations() []admissionregistrationv1.OperationType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagementClusterMutator ¶ added in v0.3.2
type ManagementClusterMutator struct {
// contains filtered or unexported fields
}
ManagementClusterMutator implements admission.MutatingAdmissionWebhook.
func NewManagementClusterMutator ¶ added in v0.3.2
func NewManagementClusterMutator(cache v3.PodSecurityAdmissionConfigurationTemplateCache) *ManagementClusterMutator
func (*ManagementClusterMutator) Admit ¶ added in v0.3.2
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 ¶ added in v0.3.2
func (m *ManagementClusterMutator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*ManagementClusterMutator) MutatingWebhook ¶ added in v0.3.2
func (m *ManagementClusterMutator) MutatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) *admissionregistrationv1.MutatingWebhook
MutatingWebhook returns the MutatingWebhook used for this CRD.
func (*ManagementClusterMutator) Operations ¶ added in v0.3.2
func (m *ManagementClusterMutator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this mutator.
type Mutator ¶
type Mutator struct{}
Mutator implements admission.MutatingAdmissionWebhook.
func (*Mutator) Admit ¶
func (m *Mutator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
Admit is the entrypoint for the mutator. Admit will return an error if it unable to process the request.
func (*Mutator) GVR ¶
func (m *Mutator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*Mutator) MutatingWebhook ¶
func (m *Mutator) MutatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) *admissionregistrationv1.MutatingWebhook
MutatingWebhook returns the MutatingWebhook used for this CRD.
func (*Mutator) Operations ¶
func (m *Mutator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this mutator.