validation

package
v1.35.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePriorityClass

func ValidatePriorityClass(pc *scheduling.PriorityClass) field.ErrorList

ValidatePriorityClass tests whether required fields in the PriorityClass are set correctly.

func ValidatePriorityClassUpdate

func ValidatePriorityClassUpdate(pc, oldPc *scheduling.PriorityClass) field.ErrorList

ValidatePriorityClassUpdate tests if required fields in the PriorityClass are set and are valid. PriorityClass does not allow updating name, value, and preemptionPolicy.

func ValidateWorkload

func ValidateWorkload(workload *scheduling.Workload) field.ErrorList

ValidateWorkload tests if all fields in a Workload are set correctly.

func ValidateWorkloadUpdate

func ValidateWorkloadUpdate(workload, oldWorkload *scheduling.Workload) field.ErrorList

ValidateWorkloadUpdate tests if an update to Workload is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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