package
0.21.4
Repository: https://github.com/klihub/kubernetes.git
Documentation: pkg.go.dev

# Functions

AccumulateUniqueHostPorts extracts each HostPort of each Container, accumulating the results and returning an error if any ports conflict.
IsSecretKey tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123), except that a leading dot is allowed.
No description provided by the author
No description provided by the author
ValidateAnnotations validates that a set of annotations are correctly defined.
ValidateEndpoints tests if required fields are set.
ValidateEndpointsName can be used to check whether the given endpoints name is valid.
ValidateEndpointsUpdate tests to make sure an endpoints update can be applied.
ValidateEvent makes sure that the event makes sense.
ValidateLabels validates that a set of labels are correctly defined.
ValidateLimitRange tests if required fields in the LimitRange are set.
ValidateLimitRangeName can be used to check whether the given limit range name is valid.
ValidateNamespace tests if required fields are set.
ValidateNamespaceFinalizeUpdate tests to see if the update is legal for an end user to make.
ValidateNamespaceName can be used to check whether the given namespace name is valid.
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.
ValidateNodeName can be used to check whether the given node name is valid.
ValidateNodeUpdate tests to make sure a node update can be applied.
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
No description provided by the author
No description provided by the author
No description provided by the author
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.
ValidatePodName can be used to check whether the given pod name is valid.
ValidatePodSpec tests that the specified PodSpec has valid data.
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.
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
ValidateReplicationController tests if required fields in the replication controller are set.
ValidateReplicationControllerName can be used to check whether the given replication controller name is valid.
ValidateReplicationControllerSpec tests if required fields in the replication controller spec are set.
ValidateReplicationControllerUpdate tests if required fields in the replication controller are set.
ValidateResourceQuota tests if required fields in the ResourceQuota are set.
ValidateResourceQuotaName can be used to check whether the given resource quota name is valid.
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.
ValidateSecret tests if required fields in the Secret are set.
ValidateSecretName can be used to check whether the given secret name is valid.
ValidateSecretUpdate tests if required fields in the Secret are set.
ValidateSecurityContext ensure the security context contains valid settings.
ValidateService tests if required fields in the service are set.
ValidateServiceAccount tests if required fields in the ServiceAccount are set.
ValidateServiceAccountName can be used to check whether the given service account name is valid.
ValidateServiceAccountUpdate tests if required fields in the ServiceAccount are set.
ValidateServiceName can be used to check whether the given service name is valid.
ValidateServiceUpdate tests if required fields in the service are set during an update.

# Constants

No description provided by the author

# Structs

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

ValidateNameFunc validates that the provided name is valid for a given resource type.