Documentation ¶
Overview ¶
Package nodedriver handles validation and creation for rke1 and rke2 nodedrivers.
Index ¶
- func NewValidator(nodeCache controllersv3.NodeCache, dynamic *dynamic.Controller) admission.ValidatingAdmissionHandler
- 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 ¶
func NewValidator ¶
func NewValidator(nodeCache controllersv3.NodeCache, dynamic *dynamic.Controller) admission.ValidatingAdmissionHandler
NewValidator returns a new Validator for NodeDriver resources
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator ValidatingWebhook for NodeDrivers
func (*Validator) Admitters ¶
Admitters returns the admitter objects used to validate machineconfigs.
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.
Click to show internal directories.
Click to hide internal directories.