Documentation
¶
Index ¶
- Constants
- func ValidateVolumeObject(obj metav1.Object, spec *svv1alpha1.VolumeSpecBase, kind string) error
- func ValidateVolumeObjectUpdate(oldObj, newObj metav1.Object, oldSpec, newSpec *svv1alpha1.VolumeSpecBase, ...) error
- func ValidateVolumeSpec(spec *svv1alpha1.VolumeSpecBase, fldPath *field.Path, isClusterScoped bool) field.ErrorList
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.
Click to show internal directories.
Click to hide internal directories.