Documentation ¶
Overview ¶
Package globalrolebinding holds admission logic for the v3 management.cattle.io.globalrolebindings CRD.
Index ¶
- 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
- 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 Mutator ¶ added in v0.4.0
type Mutator struct {
// contains filtered or unexported fields
}
Mutator implements admission.MutatingAdmissionWebhook.
func NewMutator ¶ added in v0.4.0
func NewMutator(grCache v3.GlobalRoleCache) *Mutator
NewMutator returns a new mutator for GlobalRoleBindings.
func (*Mutator) Admit ¶ added in v0.4.0
func (m *Mutator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
Admit handles the webhook admission request sent to this webhook. If this function is called without NewMutator(..) calls will panic.
func (*Mutator) GVR ¶ added in v0.4.0
func (m *Mutator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*Mutator) MutatingWebhook ¶ added in v0.4.0
func (m *Mutator) MutatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.MutatingWebhook
MutatingWebhook returns the MutatingWebhook used for this CRD.
func (*Mutator) Operations ¶ added in v0.4.0
func (m *Mutator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this mutator.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator is used to validate operations to GlobalRoleBindings.
func NewValidator ¶
func NewValidator(resolver rbacvalidation.AuthorizationRuleResolver, grbResolver *resolvers.GRBClusterRuleResolver, sar authorizationv1.SubjectAccessReviewInterface) *Validator
NewValidator returns a new validator for GlobalRoleBindings.
func (*Validator) Admitters ¶
Admitters returns the admitter objects used to validate globalRoleBindings.
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.