validation

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SysctlPatternFmt string = "(" + apivalidation.SysctlSegmentFmt + "\\.)*" + sysctlPatternSegmentFmt

Variables

View Source
var ValidateDaemonSetName = apivalidation.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.

View Source
var ValidateDeploymentName = apivalidation.NameIsDNSSubdomain

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

View Source
var ValidateIngressName = apivalidation.NameIsDNSSubdomain

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

View Source
var ValidatePodSecurityPolicyName = apivalidation.NameIsDNSSubdomain

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

View Source
var ValidateReplicaSetName = apivalidation.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

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

func IsValidSysctlPattern added in v1.4.0

func IsValidSysctlPattern(name string) bool

func ValidateDaemonSet

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

ValidateDaemonSet tests if required fields in the DaemonSet are set.

func ValidateDaemonSetSpec

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

ValidateDaemonSetSpec tests if required fields in the DaemonSetSpec are set.

func ValidateDaemonSetStatusUpdate

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

ValidateDaemonSetStatus validates tests if required fields in the DaemonSet Status section

func ValidateDaemonSetUpdate

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

ValidateDaemonSetUpdate tests if required fields in the DaemonSet are set.

func ValidateDeployment

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

func ValidateDeploymentRollback added in v1.2.0

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

func ValidateDeploymentSpec

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

Validates given deployment spec.

func ValidateDeploymentStatus added in v1.2.0

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

Validates given deployment status.

func ValidateDeploymentStatusUpdate added in v1.2.0

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

func ValidateDeploymentStrategy

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

func ValidateDeploymentUpdate

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

func ValidateIngress

func ValidateIngress(ingress *extensions.Ingress) field.ErrorList

ValidateIngress tests if required fields in the Ingress are set.

func ValidateIngressSpec

func ValidateIngressSpec(spec *extensions.IngressSpec, fldPath *field.Path) field.ErrorList

ValidateIngressSpec tests if required fields in the IngressSpec are set.

func ValidateIngressStatusUpdate

func ValidateIngressStatusUpdate(ingress, oldIngress *extensions.Ingress) field.ErrorList

ValidateIngressStatusUpdate tests if required fields in the Ingress are set when updating status.

func ValidateIngressUpdate

func ValidateIngressUpdate(ingress, oldIngress *extensions.Ingress) field.ErrorList

ValidateIngressUpdate tests if required fields in the Ingress are set.

func ValidateNetworkPolicy added in v1.3.0

func ValidateNetworkPolicy(np *extensions.NetworkPolicy) field.ErrorList

ValidateNetworkPolicy validates a networkpolicy.

func ValidateNetworkPolicyName added in v1.3.0

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

ValidateNetworkPolicyName can be used to check whether the given networkpolicy name is valid.

func ValidateNetworkPolicySpec added in v1.3.0

func ValidateNetworkPolicySpec(spec *extensions.NetworkPolicySpec, fldPath *field.Path) field.ErrorList

ValidateNetworkPolicySpec tests if required fields in the networkpolicy spec are set.

func ValidateNetworkPolicyUpdate added in v1.3.0

func ValidateNetworkPolicyUpdate(update, old *extensions.NetworkPolicy) field.ErrorList

ValidateNetworkPolicyUpdate tests if an update to a NetworkPolicy is valid.

func ValidatePodSecurityPolicy added in v1.2.0

func ValidatePodSecurityPolicy(psp *extensions.PodSecurityPolicy) field.ErrorList

func ValidatePodSecurityPolicySpec added in v1.2.0

func ValidatePodSecurityPolicySpec(spec *extensions.PodSecurityPolicySpec, fldPath *field.Path) field.ErrorList

func ValidatePodSecurityPolicySpecificAnnotations added in v1.4.0

func ValidatePodSecurityPolicySpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList

func ValidatePodSecurityPolicyUpdate added in v1.2.0

func ValidatePodSecurityPolicyUpdate(old *extensions.PodSecurityPolicy, new *extensions.PodSecurityPolicy) field.ErrorList

ValidatePodSecurityPolicyUpdate validates a PSP for updates.

func ValidatePodTemplateSpecForReplicaSet added in v1.2.0

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

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

func ValidatePositiveIntOrPercent

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

func ValidateReplicaSet added in v1.2.0

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

ValidateReplicaSet tests if required fields in the ReplicaSet are set.

func ValidateReplicaSetSpec added in v1.2.0

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

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

func ValidateReplicaSetStatusUpdate added in v1.2.0

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

ValidateReplicaSetStatusUpdate tests if required fields in the ReplicaSet are set.

func ValidateReplicaSetUpdate added in v1.2.0

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

ValidateReplicaSetUpdate tests if required fields in the ReplicaSet are set.

func ValidateRollback added in v1.2.0

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

func ValidateRollingUpdateDeployment

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

func ValidateScale added in v1.2.0

func ValidateScale(scale *extensions.Scale) field.ErrorList

func ValidateThirdPartyResource

func ValidateThirdPartyResource(obj *extensions.ThirdPartyResource) field.ErrorList

func ValidateThirdPartyResourceData

func ValidateThirdPartyResourceData(obj *extensions.ThirdPartyResourceData) field.ErrorList

func ValidateThirdPartyResourceDataUpdate

func ValidateThirdPartyResourceDataUpdate(update, old *extensions.ThirdPartyResourceData) field.ErrorList

func ValidateThirdPartyResourceName added in v1.2.0

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

func ValidateThirdPartyResourceUpdate

func ValidateThirdPartyResourceUpdate(update, old *extensions.ThirdPartyResource) field.ErrorList

Types

This section is empty.

Jump to

Keyboard shortcuts

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