# Functions
IsNotSyncSpec compare generation in status and spec and check if deployment spec is synced or not.
IsOlderReplicaActive check if older replica's are still active or not if Status.UpdatedReplicas < *Spec.Replicas then some of the replicas are updated and some of them are not.
IsProgressDeadlineExceeded is used to check update is timed out or not.
IsTerminationInProgress checks for older replicas are waiting to terminate or not.
IsUpdateInProgress Checks if all the replicas are updated or not.
NewBuilder returns a new instance of builder meant for deployment.
NewForAPIObject returns a new instance of builder for a given deployment Object.
NewKubeClient returns a new instance of kubeclient meant for deployment.
NewRollout returns new instance of rollout meant for rolloutOutput.
WithClientset sets the kubernetes client against the kubeclient instance.
WithKubeConfigPath sets the kubeConfig path against client instance.
WithNamespace set namespace in kubeclient object.
# Constants
PredicateNotSpecSynced refer to predicate IsNotSpecSynced.
PredicateOlderReplicaActive refer to predicate IsOlderReplicaActive.
PredicateProgressDeadlineExceeded refer to predicate IsProgressDeadlineExceeded.
PredicateTerminationInProgress refer to predicate IsTerminationInProgress.
PredicateUpdateInProgress refer to predicate IsUpdateInProgress.
# Structs
Builder enables building an instance of deployment.
Deploy is the wrapper over k8s deployment Object.
Kubeclient enables kubernetes API operations on deployment instance.
Rollout enables getting various output format of rolloutOutput.
RolloutOutput struct contains message and boolean value to show rolloutstatus.
# Type aliases
KubeclientBuildOption defines the abstraction to build a kubeclient instance.
Predicate abstracts conditional logic w.r.t the deployment instance
NOTE: predicate is a functional approach versus traditional approach to mix conditions such as *if-else* within blocks of business logic
NOTE: predicate approach enables clear separation of conditionals from imperatives i.e.
PredicateName type is wrapper over string.