Documentation ¶
Index ¶
- Constants
- func IsValidSysctlPattern(name string) bool
- func ValidatePodDisruptionBudget(pdb *policy.PodDisruptionBudget, opts PodDisruptionBudgetValidationOptions) field.ErrorList
- func ValidatePodDisruptionBudgetSpec(spec policy.PodDisruptionBudgetSpec, opts PodDisruptionBudgetValidationOptions, ...) field.ErrorList
- func ValidatePodDisruptionBudgetStatusUpdate(status, oldStatus policy.PodDisruptionBudgetStatus, fldPath *field.Path, ...) field.ErrorList
- type PodDisruptionBudgetValidationOptions
Constants ¶
View Source
const SysctlContainSlashPatternFmt string = "(" + apivalidation.SysctlSegmentFmt + "[\\./])*" + sysctlPatternSegmentFmt
SysctlContainSlashPatternFmt is a regex that contains a slash used for matching valid sysctl patterns.
Variables ¶
This section is empty.
Functions ¶
func IsValidSysctlPattern ¶ added in v1.11.0
IsValidSysctlPattern checks if name is a valid sysctl pattern. i.e. matches sysctlContainSlashPatternRegexp. More info:
https://man7.org/linux/man-pages/man8/sysctl.8.html https://man7.org/linux/man-pages/man5/sysctl.d.5.html
func ValidatePodDisruptionBudget ¶
func ValidatePodDisruptionBudget(pdb *policy.PodDisruptionBudget, opts PodDisruptionBudgetValidationOptions) field.ErrorList
ValidatePodDisruptionBudget validates a PodDisruptionBudget and returns an ErrorList with any errors.
func ValidatePodDisruptionBudgetSpec ¶
func ValidatePodDisruptionBudgetSpec(spec policy.PodDisruptionBudgetSpec, opts PodDisruptionBudgetValidationOptions, fldPath *field.Path) field.ErrorList
ValidatePodDisruptionBudgetSpec validates a PodDisruptionBudgetSpec and returns an ErrorList with any errors.
func ValidatePodDisruptionBudgetStatusUpdate ¶ added in v1.21.0
func ValidatePodDisruptionBudgetStatusUpdate(status, oldStatus policy.PodDisruptionBudgetStatus, fldPath *field.Path, apiVersion schema.GroupVersion) field.ErrorList
ValidatePodDisruptionBudgetStatusUpdate validates a PodDisruptionBudgetStatus and returns an ErrorList with any errors.
Types ¶
type PodDisruptionBudgetValidationOptions ¶ added in v1.26.0
type PodDisruptionBudgetValidationOptions struct {
AllowInvalidLabelValueInSelector bool
}
Click to show internal directories.
Click to hide internal directories.