validation

package
v0.18.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotMoreThan100Percent

func IsNotMoreThan100Percent(intOrStringValue util.IntOrString, fieldName string) errs.ValidationErrorList

func ValidateDaemonSet

func ValidateDaemonSet(controller *experimental.DaemonSet) errs.ValidationErrorList

ValidateDaemonSet tests if required fields in the DaemonSet are set.

func ValidateDaemonSetName

func ValidateDaemonSetName(name string, prefix bool) (bool, string)

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.

func ValidateDaemonSetSpec

func ValidateDaemonSetSpec(spec *experimental.DaemonSetSpec) errs.ValidationErrorList

ValidateDaemonSetSpec tests if required fields in the DaemonSetSpec are set.

func ValidateDaemonSetStatusUpdate

func ValidateDaemonSetStatusUpdate(controller, oldController *experimental.DaemonSet) errs.ValidationErrorList

ValidateDaemonSetStatus validates tests if required fields in the DaemonSet Status section

func ValidateDaemonSetTemplateUpdate

func ValidateDaemonSetTemplateUpdate(oldPodTemplate, podTemplate *api.PodTemplateSpec) errs.ValidationErrorList

ValidateDaemonSetTemplateUpdate tests that certain fields in the daemon set's pod template are not updated.

func ValidateDaemonSetUpdate

func ValidateDaemonSetUpdate(oldController, controller *experimental.DaemonSet) errs.ValidationErrorList

ValidateDaemonSetUpdate tests if required fields in the DaemonSet are set.

func ValidateDeploymentName

func ValidateDeploymentName(name string, prefix bool) (bool, string)

Validates that the given name can be used as a deployment name.

func ValidateDeploymentSpec

func ValidateDeploymentSpec(spec *experimental.DeploymentSpec) errs.ValidationErrorList

Validates given deployment spec.

func ValidateDeploymentStrategy

func ValidateDeploymentStrategy(strategy *experimental.DeploymentStrategy, fieldName string) errs.ValidationErrorList

func ValidateDeploymentUpdate

func ValidateDeploymentUpdate(old, update *experimental.Deployment) errs.ValidationErrorList

func ValidateHorizontalPodAutoscaler

func ValidateHorizontalPodAutoscaler(autoscaler *experimental.HorizontalPodAutoscaler) errs.ValidationErrorList

func ValidateHorizontalPodAutoscalerName

func ValidateHorizontalPodAutoscalerName(name string, prefix bool) (bool, string)

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

func ValidateHorizontalPodAutoscalerUpdate

func ValidateHorizontalPodAutoscalerUpdate(newAutoscler, oldAutoscaler *experimental.HorizontalPodAutoscaler) errs.ValidationErrorList

func ValidateIngress

func ValidateIngress(ingress *experimental.Ingress) errs.ValidationErrorList

ValidateIngress tests if required fields in the Ingress are set.

func ValidateIngressName

func ValidateIngressName(name string, prefix bool) (bool, string)

ValidateIngressName validates that the given name can be used as an Ingress name.

func ValidateIngressSpec

func ValidateIngressSpec(spec *experimental.IngressSpec) errs.ValidationErrorList

ValidateIngressSpec tests if required fields in the IngressSpec are set.

func ValidateIngressUpdate

func ValidateIngressUpdate(oldIngress, ingress *experimental.Ingress) errs.ValidationErrorList

ValidateIngressUpdate tests if required fields in the Ingress are set.

func ValidateJob

func ValidateJob(job *experimental.Job) errs.ValidationErrorList

func ValidateJobSpec

func ValidateJobSpec(spec *experimental.JobSpec) errs.ValidationErrorList

func ValidateJobSpecUpdate

func ValidateJobSpecUpdate(oldSpec, spec experimental.JobSpec) errs.ValidationErrorList

func ValidateJobStatus

func ValidateJobStatus(status *experimental.JobStatus) errs.ValidationErrorList

func ValidateJobStatusUpdate

func ValidateJobStatusUpdate(oldStatus, status experimental.JobStatus) errs.ValidationErrorList

func ValidateJobUpdate

func ValidateJobUpdate(oldJob, job *experimental.Job) errs.ValidationErrorList

func ValidateJobUpdateStatus

func ValidateJobUpdateStatus(oldJob, job *experimental.Job) errs.ValidationErrorList

func ValidatePositiveIntOrPercent

func ValidatePositiveIntOrPercent(intOrPercent util.IntOrString, fieldName string) errs.ValidationErrorList

func ValidateRollingUpdateDeployment

func ValidateRollingUpdateDeployment(rollingUpdate *experimental.RollingUpdateDeployment, fieldName string) errs.ValidationErrorList

func ValidateThirdPartyResourceDataUpdate

func ValidateThirdPartyResourceDataUpdate(old, update *experimental.ThirdPartyResourceData) errs.ValidationErrorList

func ValidateThirdPartyResourceUpdate

func ValidateThirdPartyResourceUpdate(old, update *experimental.ThirdPartyResource) errs.ValidationErrorList

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL