Documentation ¶
Index ¶
- Variables
- func ValidateControllerRevision(revision *apps.ControllerRevision) field.ErrorList
- func ValidateControllerRevisionUpdate(newHistory, oldHistory *apps.ControllerRevision) field.ErrorList
- func ValidatePodTemplateSpecForStatefulSet(template *api.PodTemplateSpec, selector labels.Selector, fldPath *field.Path) field.ErrorList
- func ValidateStatefulSet(statefulSet *apps.StatefulSet) field.ErrorList
- func ValidateStatefulSetName(name string, prefix bool) []string
- func ValidateStatefulSetSpec(spec *apps.StatefulSetSpec, fldPath *field.Path) field.ErrorList
- func ValidateStatefulSetStatus(status *apps.StatefulSetStatus, fieldPath *field.Path) field.ErrorList
- func ValidateStatefulSetStatusUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
- func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
var ValidateControllerRevisionName = apivalidation.NameIsDNSSubdomain
ValidateControllerRevisionName can be used to check whether the given ControllerRevision name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.
Functions ¶
func ValidateControllerRevision ¶ added in v1.7.1
func ValidateControllerRevision(revision *apps.ControllerRevision) field.ErrorList
ValidateControllerRevision collects errors for the fields of state and returns those errors as an ErrorList. If the returned list is empty, state is valid. Validation is performed to ensure that state is a valid ObjectMeta, its name is valid, and that it doesn't exceed the MaxControllerRevisionSize.
func ValidateControllerRevisionUpdate ¶ added in v1.7.1
func ValidateControllerRevisionUpdate(newHistory, oldHistory *apps.ControllerRevision) field.ErrorList
ValidateControllerRevisionUpdate collects errors pertaining to the mutation of an ControllerRevision Object. If the returned ErrorList is empty the update operation is valid. Any mutation to the ControllerRevision's Data or Revision is considered to be invalid.
func ValidatePodTemplateSpecForStatefulSet ¶ added in v1.5.0
func ValidatePodTemplateSpecForStatefulSet(template *api.PodTemplateSpec, selector labels.Selector, fldPath *field.Path) field.ErrorList
Validates the given template and ensures that it is in accordance with the desired selector.
func ValidateStatefulSet ¶ added in v1.5.0
func ValidateStatefulSet(statefulSet *apps.StatefulSet) field.ErrorList
ValidateStatefulSet validates a StatefulSet.
func ValidateStatefulSetName ¶ added in v1.5.0
ValidateStatefulSetName can be used to check whether the given StatefulSet name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.
func ValidateStatefulSetSpec ¶ added in v1.5.0
ValidateStatefulSetSpec tests if required fields in the StatefulSet spec are set.
func ValidateStatefulSetStatus ¶ added in v1.8.1
func ValidateStatefulSetStatus(status *apps.StatefulSetStatus, fieldPath *field.Path) field.ErrorList
ValidateStatefulSetStatus validates a StatefulSetStatus.
func ValidateStatefulSetStatusUpdate ¶ added in v1.5.0
func ValidateStatefulSetStatusUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
ValidateStatefulSetStatusUpdate tests if required fields in the StatefulSet are set.
func ValidateStatefulSetUpdate ¶ added in v1.5.0
func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
ValidateStatefulSetUpdate tests if required fields in the StatefulSet are set.
Types ¶
This section is empty.