package
1.14.0-alpha.3
Repository: https://github.com/draveness/kubernetes.git
Documentation: pkg.go.dev

# Packages

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
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
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
ControllerHasDesiredReplicas returns a condition that will be true if and only if the desired replica count for a controller's ReplicaSelector equals the Replicas count.
CreateApplyAnnotation gets the modified configuration of the object, without embedding it again, and then sets it on the object as the annotation.
No description provided by the author
CreateOrUpdateAnnotation creates the annotation used by kubectl apply only when createAnnotation is true Otherwise, only update the annotation when it already exists.
No description provided by the author
GetModifiedConfiguration retrieves the modified configuration of the object.
No description provided by the author
GetOriginalConfiguration retrieves the original configuration of the object from the annotation, or nil if no annotation was found.
HistoryViewerFor returns an implementation of HistoryViewer interface for the given schema kind.
No description provided by the author
No description provided by the author
NewRollingUpdater creates a RollingUpdater from a client.
NewScaler get a scaler for a given resource.
PodCompleted returns true if the pod has run to completion, false if the pod has not yet reached running state, or an error in any other case.
PodRunningAndReady returns true if the pod is running and ready, false if the pod has not yet reached those states, returns ErrPodCompleted if the pod has run to completion, or an error in any other case.
No description provided by the author
RollbackerFor returns an implementation of Rollbacker interface for the given schema kind.
ScaleCondition is a closure around Scale that facilitates retries via util.wait.
No description provided by the author
StatusViewerFor returns a StatusViewer for the resource specified by kind.
UpdateApplyAnnotation calls CreateApplyAnnotation if the last applied configuration annotation is already present.
No description provided by the author
WaitForScaleHasDesiredReplicas waits until condition scaleHasDesiredReplicas is satisfied or returns error when timeout happens.

# Constants

No description provided by the author
DeleteRollingUpdateCleanupPolicy means delete the old controller.
PreserveRollingUpdateCleanupPolicy means keep the old controller.
RenameRollingUpdateCleanupPolicy means delete the old controller, and rename the new controller to the name of the old controller.

# Variables

ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.

# Structs

No description provided by the author
No description provided by the author
DaemonSetStatusViewer implements the StatusViewer interface.
No description provided by the author
No description provided by the author
DeploymentStatusViewer implements the StatusViewer interface.
No description provided by the author
No description provided by the author
A PreconditionError is returned when a resource fails to match the scale preconditions passed to kubectl.
RetryParams encapsulates the retry parameters used by kubectl's scaler.
No description provided by the author
RollingUpdater provides methods for updating replicated pods in a predictable, fault-tolerant way.
RollingUpdaterConfig is the configuration for a rolling deployment process.
ScalePrecondition describes a condition that must be true for the scale to take place If CurrentSize == -1, it is ignored.
No description provided by the author
No description provided by the author
StatefulSetStatusViewer implements the StatusViewer interface.

# Interfaces

HistoryViewer provides an interface for resources have historical information.
RESTClient is a client helper for dealing with RESTful resources in a generic way.
Rollbacker provides an interface for resources that can be rolled back.
Scaler provides an interface for resources that can be scaled.
StatusViewer provides an interface for resources that have rollout status.

# Type aliases

RollingUpdaterCleanupPolicy is a cleanup action to take after the deployment is complete.