kubernetes: k8s.io/kubernetes/pkg/apis/policy/validation Index | Files

package validation

import "k8s.io/kubernetes/pkg/apis/policy/validation"

Index

Package Files

validation.go

Constants

const SysctlPatternFmt string = "(" + apivalidation.SysctlSegmentFmt + "\\.)*" + sysctlPatternSegmentFmt

Variables

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.

func IsValidSysctlPattern Uses

func IsValidSysctlPattern(name string) bool

func ValidatePodDisruptionBudget Uses

func ValidatePodDisruptionBudget(pdb *policy.PodDisruptionBudget) field.ErrorList

func ValidatePodDisruptionBudgetSpec Uses

func ValidatePodDisruptionBudgetSpec(spec policy.PodDisruptionBudgetSpec, fldPath *field.Path) field.ErrorList

func ValidatePodDisruptionBudgetStatus Uses

func ValidatePodDisruptionBudgetStatus(status policy.PodDisruptionBudgetStatus, fldPath *field.Path) field.ErrorList

func ValidatePodSecurityPolicy Uses

func ValidatePodSecurityPolicy(psp *policy.PodSecurityPolicy) field.ErrorList

func ValidatePodSecurityPolicySpec Uses

func ValidatePodSecurityPolicySpec(spec *policy.PodSecurityPolicySpec, fldPath *field.Path) field.ErrorList

func ValidatePodSecurityPolicySpecificAnnotations Uses

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

func ValidatePodSecurityPolicyUpdate Uses

func ValidatePodSecurityPolicyUpdate(old *policy.PodSecurityPolicy, new *policy.PodSecurityPolicy) field.ErrorList

ValidatePodSecurityPolicyUpdate validates a PSP for updates.

Package validation imports 15 packages (graph) and is imported by 33 packages. Updated 2019-06-13. Refresh now. Tools for package owners.