Documentation
¶
Index ¶
- Constants
- Variables
- func IsValidSysctlPattern(name string) bool
- func ValidatePodDisruptionBudget(pdb *policy.PodDisruptionBudget) field.ErrorList
- func ValidatePodDisruptionBudgetSpec(spec policy.PodDisruptionBudgetSpec, fldPath *field.Path) field.ErrorList
- func ValidatePodDisruptionBudgetStatus(status policy.PodDisruptionBudgetStatus, fldPath *field.Path) field.ErrorList
- func ValidatePodDisruptionBudgetUpdate(pdb, oldPdb *policy.PodDisruptionBudget) field.ErrorList
- func ValidatePodSecurityPolicy(psp *policy.PodSecurityPolicy) field.ErrorList
- func ValidatePodSecurityPolicySpec(spec *policy.PodSecurityPolicySpec, fldPath *field.Path) field.ErrorList
- func ValidatePodSecurityPolicySpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList
- func ValidatePodSecurityPolicyUpdate(old *policy.PodSecurityPolicy, new *policy.PodSecurityPolicy) field.ErrorList
Constants ¶
View Source
const SysctlPatternFmt string = "(" + apivalidation.SysctlSegmentFmt + "\\.)*" + sysctlPatternSegmentFmt
Variables ¶
View Source
var ValidatePodSecurityPolicyName = apimachineryvalidation.NameIsDNSSubdomain
ValidatePodSecurityPolicyName can be used to check whether the given pod security policy name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.
Functions ¶
func IsValidSysctlPattern ¶
func ValidatePodDisruptionBudget ¶
func ValidatePodDisruptionBudget(pdb *policy.PodDisruptionBudget) field.ErrorList
func ValidatePodDisruptionBudgetStatus ¶ added in v1.5.0
func ValidatePodDisruptionBudgetUpdate ¶
func ValidatePodDisruptionBudgetUpdate(pdb, oldPdb *policy.PodDisruptionBudget) field.ErrorList
func ValidatePodSecurityPolicy ¶
func ValidatePodSecurityPolicy(psp *policy.PodSecurityPolicy) field.ErrorList
func ValidatePodSecurityPolicyUpdate ¶
func ValidatePodSecurityPolicyUpdate(old *policy.PodSecurityPolicy, new *policy.PodSecurityPolicy) field.ErrorList
ValidatePodSecurityPolicyUpdate validates a PSP for updates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.