Documentation ¶
Index ¶
- Variables
- func IsNotMoreThan100Percent(intOrStringValue intstr.IntOrString, fldPath *field.Path) field.ErrorList
- func ValidateControllerRevision(revision *apps.ControllerRevision) field.ErrorList
- func ValidateControllerRevisionUpdate(newHistory, oldHistory *apps.ControllerRevision) field.ErrorList
- func ValidateDaemonSet(ds *apps.DaemonSet, opts apivalidation.PodValidationOptions) field.ErrorList
- func ValidateDaemonSetSpec(spec *apps.DaemonSetSpec, fldPath *field.Path, ...) field.ErrorList
- func ValidateDaemonSetSpecUpdate(newSpec, oldSpec *apps.DaemonSetSpec, fldPath *field.Path) field.ErrorList
- func ValidateDaemonSetStatusUpdate(ds, oldDS *apps.DaemonSet) field.ErrorList
- func ValidateDaemonSetUpdate(ds, oldDS *apps.DaemonSet, opts apivalidation.PodValidationOptions) field.ErrorList
- func ValidateDaemonSetUpdateStrategy(strategy *apps.DaemonSetUpdateStrategy, fldPath *field.Path) field.ErrorList
- func ValidateDeployment(obj *apps.Deployment, opts apivalidation.PodValidationOptions) field.ErrorList
- func ValidateDeploymentRollback(obj *apps.DeploymentRollback) field.ErrorList
- func ValidateDeploymentSpec(spec *apps.DeploymentSpec, fldPath *field.Path, ...) field.ErrorList
- func ValidateDeploymentStatus(status *apps.DeploymentStatus, fldPath *field.Path) field.ErrorList
- func ValidateDeploymentStatusUpdate(update, old *apps.Deployment) field.ErrorList
- func ValidateDeploymentStrategy(strategy *apps.DeploymentStrategy, fldPath *field.Path) field.ErrorList
- func ValidateDeploymentUpdate(update, old *apps.Deployment, opts apivalidation.PodValidationOptions) field.ErrorList
- func ValidatePodTemplateSpecForReplicaSet(template *api.PodTemplateSpec, selector labels.Selector, replicas int32, ...) field.ErrorList
- func ValidatePodTemplateSpecForStatefulSet(template *api.PodTemplateSpec, selector labels.Selector, fldPath *field.Path) field.ErrorList
- func ValidatePositiveIntOrPercent(intOrPercent intstr.IntOrString, fldPath *field.Path) field.ErrorList
- func ValidateReplicaSet(rs *apps.ReplicaSet, opts apivalidation.PodValidationOptions) field.ErrorList
- func ValidateReplicaSetSpec(spec *apps.ReplicaSetSpec, fldPath *field.Path, ...) field.ErrorList
- func ValidateReplicaSetStatus(status apps.ReplicaSetStatus, fldPath *field.Path) field.ErrorList
- func ValidateReplicaSetStatusUpdate(rs, oldRs *apps.ReplicaSet) field.ErrorList
- func ValidateReplicaSetUpdate(rs, oldRs *apps.ReplicaSet, opts apivalidation.PodValidationOptions) field.ErrorList
- func ValidateRollback(rollback *apps.RollbackConfig, fldPath *field.Path) field.ErrorList
- func ValidateRollingUpdateDaemonSet(rollingUpdate *apps.RollingUpdateDaemonSet, fldPath *field.Path) field.ErrorList
- func ValidateRollingUpdateDeployment(rollingUpdate *apps.RollingUpdateDeployment, 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 = 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.
Functions ¶
func IsNotMoreThan100Percent ¶ added in v1.13.0
func IsNotMoreThan100Percent(intOrStringValue intstr.IntOrString, fldPath *field.Path) field.ErrorList
IsNotMoreThan100Percent tests is a value can be represented as a percentage and if this value is not more than 100%.
func ValidateControllerRevision ¶ added in v1.7.0
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.0
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 ¶ added in v1.13.0
func ValidateDaemonSet(ds *apps.DaemonSet, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateDaemonSet tests if required fields in the DaemonSet are set.
func ValidateDaemonSetSpec ¶ added in v1.13.0
func ValidateDaemonSetSpec(spec *apps.DaemonSetSpec, fldPath *field.Path, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateDaemonSetSpec tests if required fields in the DaemonSetSpec are set.
func ValidateDaemonSetSpecUpdate ¶ added in v1.13.0
func ValidateDaemonSetSpecUpdate(newSpec, oldSpec *apps.DaemonSetSpec, fldPath *field.Path) field.ErrorList
ValidateDaemonSetSpecUpdate tests if an update to a DaemonSetSpec is valid.
func ValidateDaemonSetStatusUpdate ¶ added in v1.13.0
ValidateDaemonSetStatusUpdate tests if required fields in the DaemonSet Status section
func ValidateDaemonSetUpdate ¶ added in v1.13.0
func ValidateDaemonSetUpdate(ds, oldDS *apps.DaemonSet, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateDaemonSetUpdate tests if required fields in the DaemonSet are set.
func ValidateDaemonSetUpdateStrategy ¶ added in v1.13.0
func ValidateDaemonSetUpdateStrategy(strategy *apps.DaemonSetUpdateStrategy, fldPath *field.Path) field.ErrorList
ValidateDaemonSetUpdateStrategy validates a given DaemonSetUpdateStrategy.
func ValidateDeployment ¶ added in v1.13.0
func ValidateDeployment(obj *apps.Deployment, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateDeployment validates a given Deployment.
func ValidateDeploymentRollback ¶ added in v1.13.0
func ValidateDeploymentRollback(obj *apps.DeploymentRollback) field.ErrorList
ValidateDeploymentRollback validates a given DeploymentRollback.
func ValidateDeploymentSpec ¶ added in v1.13.0
func ValidateDeploymentSpec(spec *apps.DeploymentSpec, fldPath *field.Path, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateDeploymentSpec validates given deployment spec.
func ValidateDeploymentStatus ¶ added in v1.13.0
ValidateDeploymentStatus validates given deployment status.
func ValidateDeploymentStatusUpdate ¶ added in v1.13.0
func ValidateDeploymentStatusUpdate(update, old *apps.Deployment) field.ErrorList
ValidateDeploymentStatusUpdate tests if a an update to a Deployment status is valid.
func ValidateDeploymentStrategy ¶ added in v1.13.0
func ValidateDeploymentStrategy(strategy *apps.DeploymentStrategy, fldPath *field.Path) field.ErrorList
ValidateDeploymentStrategy validates given DeploymentStrategy.
func ValidateDeploymentUpdate ¶ added in v1.13.0
func ValidateDeploymentUpdate(update, old *apps.Deployment, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateDeploymentUpdate tests if an update to a Deployment is valid.
func ValidatePodTemplateSpecForReplicaSet ¶ added in v1.13.0
func ValidatePodTemplateSpecForReplicaSet(template *api.PodTemplateSpec, selector labels.Selector, replicas int32, fldPath *field.Path, opts apivalidation.PodValidationOptions) field.ErrorList
ValidatePodTemplateSpecForReplicaSet validates the given template and ensures that it is in accordance with the desired selector and replicas.
func ValidatePodTemplateSpecForStatefulSet ¶ added in v1.5.0
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 ¶ added in v1.13.0
func ValidatePositiveIntOrPercent(intOrPercent intstr.IntOrString, fldPath *field.Path) field.ErrorList
ValidatePositiveIntOrPercent tests if a given value is a valid int or percentage.
func ValidateReplicaSet ¶ added in v1.13.0
func ValidateReplicaSet(rs *apps.ReplicaSet, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateReplicaSet tests if required fields in the ReplicaSet are set.
func ValidateReplicaSetSpec ¶ added in v1.13.0
func ValidateReplicaSetSpec(spec *apps.ReplicaSetSpec, fldPath *field.Path, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateReplicaSetSpec tests if required fields in the ReplicaSet spec are set.
func ValidateReplicaSetStatus ¶ added in v1.13.0
ValidateReplicaSetStatus validates a given ReplicaSetStatus.
func ValidateReplicaSetStatusUpdate ¶ added in v1.13.0
func ValidateReplicaSetStatusUpdate(rs, oldRs *apps.ReplicaSet) field.ErrorList
ValidateReplicaSetStatusUpdate tests if required fields in the ReplicaSet are set.
func ValidateReplicaSetUpdate ¶ added in v1.13.0
func ValidateReplicaSetUpdate(rs, oldRs *apps.ReplicaSet, opts apivalidation.PodValidationOptions) field.ErrorList
ValidateReplicaSetUpdate tests if required fields in the ReplicaSet are set.
func ValidateRollback ¶ added in v1.13.0
ValidateRollback validates given RollbackConfig.
func ValidateRollingUpdateDaemonSet ¶ added in v1.13.0
func ValidateRollingUpdateDaemonSet(rollingUpdate *apps.RollingUpdateDaemonSet, fldPath *field.Path) field.ErrorList
ValidateRollingUpdateDaemonSet validates a given RollingUpdateDaemonSet.
func ValidateRollingUpdateDeployment ¶ added in v1.13.0
func ValidateRollingUpdateDeployment(rollingUpdate *apps.RollingUpdateDeployment, fldPath *field.Path) field.ErrorList
ValidateRollingUpdateDeployment validates a given RollingUpdateDeployment.
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.0
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.