poddecoration

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultPodDecoration

func SetDefaultPodDecoration(pd *appsv1alpha1.PodDecoration)

func ValidateContainers

func ValidateContainers(containers []*corev1.Container, fldPath *field.Path) (allErrs field.ErrorList)

func ValidatePodDecoration

func ValidatePodDecoration(pd *appsv1alpha1.PodDecoration) error

func ValidatePodDecorationPodTemplateMeta

func ValidatePodDecorationPodTemplateMeta(meta []*appsv1alpha1.PodDecorationPodTemplateMeta, fldPath *field.Path) (allErrs field.ErrorList)

func ValidatePrimaryContainer

func ValidatePrimaryContainer(container *appsv1alpha1.PrimaryContainerPatch, fldPath *field.Path) (allErrs field.ErrorList)

func ValidatePrimaryContainers

func ValidatePrimaryContainers(containers []*appsv1alpha1.PrimaryContainerPatch, fldPath *field.Path) (allErrs field.ErrorList)

func ValidateTemplate

func ValidateTemplate(template *appsv1alpha1.PodDecorationPodTemplate, fldPath *field.Path) (allErrs field.ErrorList)

func ValidateTolerations

func ValidateTolerations(tolerations []corev1.Toleration, fldPath *field.Path) (allErrs field.ErrorList)

func ValidateVolumes

func ValidateVolumes(volumes []corev1.Volume, fldPath *field.Path) (allErrs field.ErrorList)

Types

type MutatingHandler

type MutatingHandler struct {
	*mixin.WebhookHandlerMixin
}

func NewMutatingHandler

func NewMutatingHandler() *MutatingHandler

func (*MutatingHandler) Handle

func (h *MutatingHandler) Handle(ctx context.Context, req admission.Request) (resp admission.Response)

type ValidatingHandler

type ValidatingHandler struct {
	*mixin.WebhookHandlerMixin
}

func NewValidatingHandler

func NewValidatingHandler() *ValidatingHandler

func (*ValidatingHandler) Handle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL