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

package validation

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

Index

Package Files

validation.go

Variables

var ValidateControllerRevisionName = apimachineryvalidation.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.

var ValidateDaemonSetName = apimachineryvalidation.NameIsDNSSubdomain

ValidateDaemonSetName can be used to check whether the given daemon set name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.

var ValidateDeploymentName = apimachineryvalidation.NameIsDNSSubdomain

ValidateDeploymentName validates that the given name can be used as a deployment name.

var ValidateReplicaSetName = apimachineryvalidation.NameIsDNSSubdomain

ValidateReplicaSetName can be used to check whether the given ReplicaSet name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.

func IsNotMoreThan100Percent Uses

func IsNotMoreThan100Percent(intOrStringValue intstr.IntOrString, fldPath *field.Path) field.ErrorList

func ValidateControllerRevision Uses

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 Uses

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 ValidateDaemonSet Uses

func ValidateDaemonSet(ds *apps.DaemonSet) field.ErrorList

ValidateDaemonSet tests if required fields in the DaemonSet are set.

func ValidateDaemonSetSpec Uses

func ValidateDaemonSetSpec(spec *apps.DaemonSetSpec, fldPath *field.Path) field.ErrorList

ValidateDaemonSetSpec tests if required fields in the DaemonSetSpec are set.

func ValidateDaemonSetSpecUpdate Uses

func ValidateDaemonSetSpecUpdate(newSpec, oldSpec *apps.DaemonSetSpec, fldPath *field.Path) field.ErrorList

func ValidateDaemonSetStatusUpdate Uses

func ValidateDaemonSetStatusUpdate(ds, oldDS *apps.DaemonSet) field.ErrorList

ValidateDaemonSetStatusUpdate validates tests if required fields in the DaemonSet Status section

func ValidateDaemonSetUpdate Uses

func ValidateDaemonSetUpdate(ds, oldDS *apps.DaemonSet) field.ErrorList

ValidateDaemonSetUpdate tests if required fields in the DaemonSet are set.

func ValidateDaemonSetUpdateStrategy Uses

func ValidateDaemonSetUpdateStrategy(strategy *apps.DaemonSetUpdateStrategy, fldPath *field.Path) field.ErrorList

func ValidateDeployment Uses

func ValidateDeployment(obj *apps.Deployment) field.ErrorList

func ValidateDeploymentRollback Uses

func ValidateDeploymentRollback(obj *apps.DeploymentRollback) field.ErrorList

func ValidateDeploymentSpec Uses

func ValidateDeploymentSpec(spec *apps.DeploymentSpec, fldPath *field.Path) field.ErrorList

ValidateDeploymentSpec validates given deployment spec.

func ValidateDeploymentStatus Uses

func ValidateDeploymentStatus(status *apps.DeploymentStatus, fldPath *field.Path) field.ErrorList

ValidateDeploymentStatus validates given deployment status.

func ValidateDeploymentStatusUpdate Uses

func ValidateDeploymentStatusUpdate(update, old *apps.Deployment) field.ErrorList

func ValidateDeploymentStrategy Uses

func ValidateDeploymentStrategy(strategy *apps.DeploymentStrategy, fldPath *field.Path) field.ErrorList

func ValidateDeploymentUpdate Uses

func ValidateDeploymentUpdate(update, old *apps.Deployment) field.ErrorList

func ValidatePodTemplateSpecForReplicaSet Uses

func ValidatePodTemplateSpecForReplicaSet(template *api.PodTemplateSpec, selector labels.Selector, replicas int32, fldPath *field.Path) field.ErrorList

ValidatePodTemplateSpecForReplicaSet validates the given template and ensures that it is in accordance with the desired selector and replicas.

func ValidatePodTemplateSpecForStatefulSet Uses

func ValidatePodTemplateSpecForStatefulSet(template *api.PodTemplateSpec, selector labels.Selector, fldPath *field.Path) field.ErrorList

ValidatePodTemplateSpecForStatefulSet validates the given template and ensures that it is in accordance with the desired selector.

func ValidatePositiveIntOrPercent Uses

func ValidatePositiveIntOrPercent(intOrPercent intstr.IntOrString, fldPath *field.Path) field.ErrorList

func ValidateReplicaSet Uses

func ValidateReplicaSet(rs *apps.ReplicaSet) field.ErrorList

ValidateReplicaSet tests if required fields in the ReplicaSet are set.

func ValidateReplicaSetSpec Uses

func ValidateReplicaSetSpec(spec *apps.ReplicaSetSpec, fldPath *field.Path) field.ErrorList

ValidateReplicaSetSpec tests if required fields in the ReplicaSet spec are set.

func ValidateReplicaSetStatus Uses

func ValidateReplicaSetStatus(status apps.ReplicaSetStatus, fldPath *field.Path) field.ErrorList

func ValidateReplicaSetStatusUpdate Uses

func ValidateReplicaSetStatusUpdate(rs, oldRs *apps.ReplicaSet) field.ErrorList

ValidateReplicaSetStatusUpdate tests if required fields in the ReplicaSet are set.

func ValidateReplicaSetUpdate Uses

func ValidateReplicaSetUpdate(rs, oldRs *apps.ReplicaSet) field.ErrorList

ValidateReplicaSetUpdate tests if required fields in the ReplicaSet are set.

func ValidateRollback Uses

func ValidateRollback(rollback *apps.RollbackConfig, fldPath *field.Path) field.ErrorList

func ValidateRollingUpdateDaemonSet Uses

func ValidateRollingUpdateDaemonSet(rollingUpdate *apps.RollingUpdateDaemonSet, fldPath *field.Path) field.ErrorList

func ValidateRollingUpdateDeployment Uses

func ValidateRollingUpdateDeployment(rollingUpdate *apps.RollingUpdateDeployment, fldPath *field.Path) field.ErrorList

func ValidateStatefulSet Uses

func ValidateStatefulSet(statefulSet *apps.StatefulSet) field.ErrorList

ValidateStatefulSet validates a StatefulSet.

func ValidateStatefulSetName Uses

func ValidateStatefulSetName(name string, prefix bool) []string

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 Uses

func ValidateStatefulSetSpec(spec *apps.StatefulSetSpec, fldPath *field.Path) field.ErrorList

ValidateStatefulSetSpec tests if required fields in the StatefulSet spec are set.

func ValidateStatefulSetStatus Uses

func ValidateStatefulSetStatus(status *apps.StatefulSetStatus, fieldPath *field.Path) field.ErrorList

ValidateStatefulSetStatus validates a StatefulSetStatus.

func ValidateStatefulSetStatusUpdate Uses

func ValidateStatefulSetStatusUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList

ValidateStatefulSetStatusUpdate tests if required fields in the StatefulSet are set.

func ValidateStatefulSetUpdate Uses

func ValidateStatefulSetUpdate(statefulSet, oldStatefulSet *apps.StatefulSet) field.ErrorList

ValidateStatefulSetUpdate tests if required fields in the StatefulSet are set.

Package validation imports 13 packages (graph) and is imported by 41 packages. Updated 2019-02-04. Refresh now. Tools for package owners.