package
1.6.0-alpha.0
Repository: https://github.com/andrewsykim/kubernetes.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AccumulateUniqueHostPorts extracts each HostPort of each Container, accumulating the results and returning an error if any ports conflict.
IsValidSysctlName checks that the given string is a valid sysctl name, i.e.
NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label.
NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label.
NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain.
No description provided by the author
No description provided by the author
ValidateAffinityInPodAnnotations tests that the serialized Affinity in Pod.Annotations has valid data.
ValidateAnnotations validates that a set of annotations are correctly defined.
No description provided by the author
ValidateAvoidPodsInNodeAnnotations tests that the serialized AvoidPods in Node.Annotations has valid data.
ValidateConfigMap tests whether required fields in the ConfigMap are set.
ValidateConfigMapUpdate tests if required fields in the ConfigMap are set.
No description provided by the author
No description provided by the author
ValidateDNS1123Subdomain validates that a name is a proper DNS subdomain.
ValidateEndpoints tests if required fields are set.
No description provided by the author
ValidateEndpointsUpdate tests to make sure an endpoints update can be applied.
ValidateEvent makes sure that the event makes sense.
ValidateHasLabel requires that api.ObjectMeta has a Label with key and expectedValue.
No description provided by the author
ValidateLimitRange tests if required fields in the LimitRange are set.
ValidateLoadBalancerStatus validates required fields on a LoadBalancerStatus.
ValidateNamespace tests if required fields are set.
ValidateNamespaceFinalizeUpdate tests to see if the update is legal for an end user to make.
ValidateNamespaceStatusUpdate tests to see if the update is legal for an end user to make.
ValidateNamespaceUpdate tests to make sure a namespace update can be applied.
ValidateNode tests if required fields in the node are set.
ValidateNodeSelector tests that the specified nodeSelector fields has valid data.
ValidateNodeSelectorRequirement tests that the specified NodeSelectorRequirement fields has valid data.
ValidateNodeSelectorTerm tests that the specified node selector term has valid data.
No description provided by the author
ValidateNodeUpdate tests to make sure a node update can be applied.
Validates that the given selector is non-empty.
No description provided by the author
Validates that given value is not negative.
Validates that a Quantity is not negative.
ValidateObjectMeta validates an object's metadata on creation.
ValidateObjectMetaUpdate validates an object's metadata when updated.
No description provided by the author
No description provided by the author
ValidatePersistentVolumeClaim validates a PersistentVolumeClaim.
ValidatePersistentVolumeClaimSpec validates a PersistentVolumeClaimSpec.
ValidatePersistentVolumeClaimStatusUpdate validates an update to status of a PeristentVolumeClaim.
ValidatePersistentVolumeClaimUpdate validates an update to a PeristentVolumeClaim.
ValidatePersistentVolumeStatusUpdate tests to see if the status update is legal for an end user to make.
ValidatePersistentVolumeUpdate tests to see if the update is legal for an end user to make.
ValidatePod tests if required fields in the pod are set.
ValidatePodBinding tests if required fields in the pod binding are legal.
No description provided by the author
ValidatePodSecurityContext test that the specified PodSecurityContext has valid data.
ValidatePodSpec tests that the specified PodSpec has valid data.
No description provided by the author
No description provided by the author
ValidatePodStatusUpdate tests to see if the update is legal for an end user to make.
ValidatePodTemplate tests if required fields in the pod template are set.
ValidatePodTemplateSpec validates the spec of a pod template.
Validates the given template and ensures that it is in accordance with the desired selector and replicas.
ValidatePodTemplateUpdate tests to see if the update is legal for an end user to make.
ValidatePodUpdate tests to see if the update is legal for an end user to make.
No description provided by the author
ValidatePreferredSchedulingTerms tests that the specified SoftNodeAffinity fields has valid data.
No description provided by the author
ValidateReplicationController tests if required fields in the replication controller are set.
ValidateReplicationControllerSpec tests if required fields in the replication controller spec are set.
ValidateReplicationControllerStatusUpdate tests if required fields in the replication controller are set.
ValidateReplicationControllerUpdate tests if required fields in the replication controller are set.
ValidateResourceQuantityValue enforces that specified quantity is valid for specified resource.
ValidateResourceQuota tests if required fields in the ResourceQuota are set.
Validate resource names that can go in a resource quota Refer to docs/design/resources.md for more details.
No description provided by the author
No description provided by the author
ValidateResourceQuotaStatusUpdate tests to see if the status update is legal for an end user to make.
ValidateResourceQuotaUpdate tests to see if the update is legal for an end user to make.
Validates resource requirement spec.
No description provided by the author
No description provided by the author
ValidateSecret tests if required fields in the Secret are set.
ValidateSecretUpdate tests if required fields in the Secret are set.
ValidateSecurityContext ensure the security context contains valid settings.
ValidateService tests if required fields/annotations of a Service are valid.
ValidateServiceAccount tests if required fields in the ServiceAccount are set.
ValidateServiceAccountUpdate tests if required fields in the ServiceAccount are set.
ValidateServiceStatusUpdate tests if required fields in the Service are set when updating status.
ValidateServiceUpdate tests if required fields in the service are set during an update.
ValidateTaintsInNodeAnnotations tests that the serialized taints in Node.Annotations has valid data.
ValidateTolerationsInPodAnnotations tests that the serialized tolerations in Pod.Annotations has valid data.
# Constants
a sysctl name regex.
the maximal length of a sysctl name.
a sysctl segment regex, concatenated with dots to form a sysctl name.
# Variables
BannedOwners is a black list of object that are not allowed to be owners.
TODO: delete this global variable when we enable the validation of common fields by default.
ValidateClusterName can be used to check whether the given cluster name is valid.
ValidateConfigMapName can be used to check whether the given ConfigMap name is valid.
ValidateEndpointsName can be used to check whether the given endpoints name is valid.
ValidateLimitRangeName can be used to check whether the given limit range name is valid.
ValidateNamespaceName can be used to check whether the given namespace name is valid.
ValidateNodeName can be used to check whether the given node name is valid.
ValidatePersistentVolumeName checks that a name is appropriate for a PersistentVolumeName object.
ValidatePodName can be used to check whether the given pod name is valid.
ValidateReplicationControllerName can be used to check whether the given replication controller name is valid.
ValidateResourceQuotaName can be used to check whether the given resource quota name is valid.
ValidateSecretName can be used to check whether the given secret name is valid.
ValidateServiceAccountName can be used to check whether the given service account name is valid.
ValidateServiceName can be used to check whether the given service name is valid.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Schema is an interface that knows how to validate an API object serialized to a byte array.
# Type aliases
No description provided by the author
TypeNotFoundError is returned when specified type can not found in schema.
ValidateNameFunc validates that the provided name is valid for a given resource type.