validation

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct{}

Validator provides centralized validation for Kubernetes resources and their components.

func NewValidator

func NewValidator() *Validator

NewValidator creates a new validator instance.

func (*Validator) ValidateACMEIssuer

func (v *Validator) ValidateACMEIssuer(acme *cmacme.ACMEIssuer) error

func (*Validator) ValidateBFDProfile

func (v *Validator) ValidateBFDProfile(profile *metallbv1beta1.BFDProfile) error

func (*Validator) ValidateBGPAdvertisement

func (v *Validator) ValidateBGPAdvertisement(adv *metallbv1beta1.BGPAdvertisement) error

func (*Validator) ValidateBGPPeer

func (v *Validator) ValidateBGPPeer(peer *metallbv1beta1.BGPPeer) error

func (*Validator) ValidateCertificate

func (v *Validator) ValidateCertificate(cert *certv1.Certificate) error

func (*Validator) ValidateClusterIssuer

func (v *Validator) ValidateClusterIssuer(issuer *certv1.ClusterIssuer) error

func (*Validator) ValidateClusterRole

func (v *Validator) ValidateClusterRole(clusterRole *rbacv1.ClusterRole) error

func (*Validator) ValidateClusterRoleBinding

func (v *Validator) ValidateClusterRoleBinding(clusterRoleBinding *rbacv1.ClusterRoleBinding) error

func (*Validator) ValidateClusterSecretStore

func (v *Validator) ValidateClusterSecretStore(css *esv1beta1.ClusterSecretStore) error

func (*Validator) ValidateConfigMap

func (v *Validator) ValidateConfigMap(cm *corev1.ConfigMap) error

func (*Validator) ValidateContainer

func (v *Validator) ValidateContainer(container *corev1.Container) error

func (*Validator) ValidateCronJob

func (v *Validator) ValidateCronJob(cronJob *batchv1.CronJob) error

func (*Validator) ValidateDaemonSet

func (v *Validator) ValidateDaemonSet(ds *appsv1.DaemonSet) error

func (*Validator) ValidateDeployment

func (v *Validator) ValidateDeployment(deployment *appsv1.Deployment) error

func (*Validator) ValidateDeploymentWithSpec

func (v *Validator) ValidateDeploymentWithSpec(deployment *appsv1.Deployment, spec *corev1.PodSpec) error

ValidateDeploymentWithSpec validates both deployment and its core spec components

func (*Validator) ValidateEphemeralContainer

func (v *Validator) ValidateEphemeralContainer(container *corev1.EphemeralContainer) error

func (*Validator) ValidateExternalSecret

func (v *Validator) ValidateExternalSecret(es *esv1beta1.ExternalSecret) error

func (*Validator) ValidateFluxInstance

func (v *Validator) ValidateFluxInstance(fi *fluxv1.FluxInstance) error

func (*Validator) ValidateHorizontalPodAutoscaler

func (v *Validator) ValidateHorizontalPodAutoscaler(hpa *autoscalingv2.HorizontalPodAutoscaler) error

func (*Validator) ValidateIPAddressPool

func (v *Validator) ValidateIPAddressPool(pool *metallbv1beta1.IPAddressPool) error

func (*Validator) ValidateImagePullSecret

func (v *Validator) ValidateImagePullSecret(secret *corev1.LocalObjectReference) error

func (*Validator) ValidateIngress

func (v *Validator) ValidateIngress(ingress *networkingv1.Ingress) error

func (*Validator) ValidateInitContainer

func (v *Validator) ValidateInitContainer(container *corev1.Container) error

func (*Validator) ValidateIssuer

func (v *Validator) ValidateIssuer(issuer *certv1.Issuer) error

func (*Validator) ValidateJob

func (v *Validator) ValidateJob(job *batchv1.Job) error

func (*Validator) ValidateKustomization

func (v *Validator) ValidateKustomization(k *types.Kustomization) error

func (*Validator) ValidateL2Advertisement

func (v *Validator) ValidateL2Advertisement(adv *metallbv1beta1.L2Advertisement) error

func (*Validator) ValidateNamespace

func (v *Validator) ValidateNamespace(ns *corev1.Namespace) error

func (*Validator) ValidatePod

func (v *Validator) ValidatePod(pod *corev1.Pod) error

func (*Validator) ValidatePodDisruptionBudget

func (v *Validator) ValidatePodDisruptionBudget(pdb *policyv1.PodDisruptionBudget) error

func (*Validator) ValidatePodSpec

func (v *Validator) ValidatePodSpec(spec *corev1.PodSpec) error

func (*Validator) ValidatePodSpecWithContainer

func (v *Validator) ValidatePodSpecWithContainer(spec *corev1.PodSpec, container *corev1.Container) error

ValidatePodSpecWithContainer validates PodSpec and Container together

func (*Validator) ValidateRole

func (v *Validator) ValidateRole(role *rbacv1.Role) error

func (*Validator) ValidateRoleBinding

func (v *Validator) ValidateRoleBinding(roleBinding *rbacv1.RoleBinding) error

func (*Validator) ValidateSecret

func (v *Validator) ValidateSecret(secret *corev1.Secret) error

func (*Validator) ValidateSecretStore

func (v *Validator) ValidateSecretStore(ss *esv1beta1.SecretStore) error

func (*Validator) ValidateService

func (v *Validator) ValidateService(service *corev1.Service) error

func (*Validator) ValidateServiceAccount

func (v *Validator) ValidateServiceAccount(sa *corev1.ServiceAccount) error

func (*Validator) ValidateServicePort

func (v *Validator) ValidateServicePort(port *corev1.ServicePort) error

func (*Validator) ValidateServiceWithPort

func (v *Validator) ValidateServiceWithPort(service *corev1.Service, port *corev1.ServicePort) error

ValidateServiceWithPort validates Service and ServicePort together

func (*Validator) ValidateStatefulSet

func (v *Validator) ValidateStatefulSet(sts *appsv1.StatefulSet) error

func (*Validator) ValidateToleration

func (v *Validator) ValidateToleration(toleration *corev1.Toleration) error

func (*Validator) ValidateVolume

func (v *Validator) ValidateVolume(volume *corev1.Volume) error

Jump to

Keyboard shortcuts

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