package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Functions

IsNotMoreThan100Percent tests is a value can be represented as a percentage and if this value is not more than 100%.
ValidateControllerRevision collects errors for the fields of state and returns those errors as an ErrorList.
ValidateControllerRevisionUpdate collects errors pertaining to the mutation of an ControllerRevision Object.
ValidateDaemonSet tests if required fields in the DaemonSet are set.
ValidateDaemonSetSpec tests if required fields in the DaemonSetSpec are set.
ValidateDaemonSetSpecUpdate tests if an update to a DaemonSetSpec is valid.
ValidateDaemonSetStatusUpdate tests if required fields in the DaemonSet Status section.
ValidateDaemonSetUpdate tests if required fields in the DaemonSet are set.
ValidateDaemonSetUpdateStrategy validates a given DaemonSetUpdateStrategy.
ValidateDeployment validates a given Deployment.
ValidateDeploymentRollback validates a given DeploymentRollback.
ValidateDeploymentSpec validates given deployment spec.
ValidateDeploymentStatus validates given deployment status.
ValidateDeploymentStatusUpdate tests if a an update to a Deployment status is valid.
ValidateDeploymentStrategy validates given DeploymentStrategy.
ValidateDeploymentUpdate tests if an update to a Deployment is valid.
ValidatePodTemplateSpecForReplicaSet validates the given template and ensures that it is in accordance with the desired selector and replicas.
ValidatePodTemplateSpecForStatefulSet validates the given template and ensures that it is in accordance with the desired selector.
ValidatePositiveIntOrPercent tests if a given value is a valid int or percentage.
ValidateReplicaSet tests if required fields in the ReplicaSet are set.
ValidateReplicaSetSpec tests if required fields in the ReplicaSet spec are set.
ValidateReplicaSetStatus validates a given ReplicaSetStatus.
ValidateReplicaSetStatusUpdate tests if required fields in the ReplicaSet are set.
ValidateReplicaSetUpdate tests if required fields in the ReplicaSet are set.
ValidateRollback validates given RollbackConfig.
ValidateRollingUpdateDaemonSet validates a given RollingUpdateDaemonSet.
ValidateRollingUpdateDeployment validates a given RollingUpdateDeployment.
ValidateStatefulSet validates a StatefulSet.
ValidateStatefulSetName can be used to check whether the given StatefulSet name is valid.
ValidateStatefulSetSpec tests if required fields in the StatefulSet spec are set.
ValidateStatefulSetStatus validates a StatefulSetStatus.
ValidateStatefulSetStatusUpdate tests if required fields in the StatefulSet are set.
ValidateStatefulSetUpdate tests if required fields in the StatefulSet are set.

# Variables

ValidateControllerRevisionName can be used to check whether the given ControllerRevision name is valid.
ValidateDaemonSetName can be used to check whether the given daemon set name is valid.
ValidateDeploymentName validates that the given name can be used as a deployment name.
ValidateReplicaSetName can be used to check whether the given ReplicaSet name is valid.