package validation
import "k8s.io/kubernetes/pkg/apis/apps/validation"
Index ¶
- 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 ValidateStatefulSetStatusUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
- func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
Functions ¶
func ValidatePodTemplateSpecForStatefulSet ¶
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 ¶
func ValidateStatefulSet(statefulSet *apps.StatefulSet) field.ErrorList
ValidateStatefulSet validates a StatefulSet.
func ValidateStatefulSetName ¶
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 ¶
ValidateStatefulSetSpec tests if required fields in the StatefulSet spec are set.
func ValidateStatefulSetStatusUpdate ¶
func ValidateStatefulSetStatusUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
ValidateStatefulSetStatusUpdate tests if required fields in the StatefulSet are set.
func ValidateStatefulSetUpdate ¶
func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList
ValidateStatefulSetUpdate tests if required fields in the StatefulSet are set.
Source Files ¶
validation.go
- Version
- v1.5.0-beta.2
- Published
- Nov 24, 2016
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 19 seconds ago –
Tools for package owners.