validation

package
v0.0.229 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrFieldImmutable = "field is immutable"
)

Variables

This section is empty.

Functions

func ValidateVolumeObject

func ValidateVolumeObject(obj metav1.Object, spec *svv1alpha1.VolumeSpecBase, kind string) error

ValidateVolumeObject validates a volume object (SharedVolume or ClusterSharedVolume)

func ValidateVolumeObjectUpdate

func ValidateVolumeObjectUpdate(oldObj, newObj metav1.Object, oldSpec, newSpec *svv1alpha1.VolumeSpecBase, kind string) error

ValidateVolumeObjectUpdate validates a volume object update for immutable fields

func ValidateVolumeSpec

func ValidateVolumeSpec(spec *svv1alpha1.VolumeSpecBase, fldPath *field.Path, isClusterScoped bool) field.ErrorList

ValidateVolumeSpec validates the common volume specification

Types

This section is empty.

Jump to

Keyboard shortcuts

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