Documentation ¶
Index ¶
- type NodeAdmission
- func (p NodeAdmission) ValidateCreate(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)
- func (p NodeAdmission) ValidateDelete(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)
- func (p NodeAdmission) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)
- type PodAdmission
- func (p PodAdmission) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (p PodAdmission) ValidateDelete(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)
- func (p PodAdmission) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)
- type PodAdmissionConditionOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeAdmission ¶
type NodeAdmission struct {
// contains filtered or unexported fields
}
func NewNodeAdmissionWebhook ¶
func NewNodeAdmissionWebhook(enableInterconnect, enableHybridOverlay bool, extraAllowedUsers ...string) *NodeAdmission
func (NodeAdmission) ValidateCreate ¶
func (NodeAdmission) ValidateDelete ¶
func (NodeAdmission) ValidateUpdate ¶
type PodAdmission ¶
type PodAdmission struct {
// contains filtered or unexported fields
}
func NewPodAdmissionWebhook ¶
func NewPodAdmissionWebhook(nodeLister listers.NodeLister, podAdmissions []PodAdmissionConditionOption, extraAllowedUsers ...string) *PodAdmission
func (PodAdmission) ValidateCreate ¶
func (PodAdmission) ValidateDelete ¶
func (PodAdmission) ValidateUpdate ¶
type PodAdmissionConditionOption ¶
type PodAdmissionConditionOption struct { // CommonNamePrefix specifies common name in Usename CommonNamePrefix string `json:"commonNamePrefix"` // AllowedPodAnnotations contains annotation list to check Pod's annotation for webhook // this is used for Defaut=false because ovn-node case requires more detailed pod annotation // check AllowedPodAnnotations []string `json:"allowedPodAnnotations"` // AllowedPodAnnotationKeys contains AllowedPodAnnotations value as sets.Set[] AllowedPodAnnotationKeys sets.Set[string] }
PodAdmissionConditionOptions specifies additional validate admission for pod.
func InitPodAdmissionConditionOptions ¶
func InitPodAdmissionConditionOptions(fileName string) (podAdmissions []PodAdmissionConditionOption, err error)
InitPodAdmissionConditionOptions initializes PodAdmissionConditionOption: Load json from fileName
Click to show internal directories.
Click to hide internal directories.