validators

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPipelineNameLength = validationutils.DNS1035LabelMaxLength - 11

Variables

View Source
var ErrVolumeCollision = errors.New("volume name collision detected")

Functions

func DetectVolumeCollision

func DetectVolumeCollision(volumes []v1.Volume, mergeDuplicates bool) ([]v1.Volume, error)

func GetNewRequiredParameters

func GetNewRequiredParameters(oldParams, newParams []v1beta1.ParameterDefinition) []string

func UndefinedParameters

func UndefinedParameters(params []v1beta1.ParameterDefinition, paramValues []v1beta1.ParameterSetting) []string

func ValidateAdditionalAnnotations added in v0.2.2

func ValidateAdditionalAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList

func ValidateAdditionalLabels added in v0.2.2

func ValidateAdditionalLabels(labels map[string]string, fldPath *field.Path) field.ErrorList

func ValidatePipeline

func ValidatePipeline(ctx context.Context, c client.Client, pipeline *v1beta1.Pipeline) error

func ValidateProfile

func ValidateProfile(ctx context.Context, c client.Client, profile *v1beta1.Profile) error

ValidateProfile will validate the fields and references of the profile and return nil if the profile is valid. If the profile is not valid, a k8s.io/apimachinery/pkg/api/errors.StatusError is returned containing the details of the validation error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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