package
1.13.0-alpha.1
Repository: https://github.com/clickyotomy/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
# Functions
No description provided by the author
No description provided by the author
AnnotateFlags annotates all flags that are used by generators.
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
Create the annotation used by kubectl apply only when createAnnotation is true Otherwise, only update the annotation when it already exists.
EnsureFlagsValid ensures that no invalid flags are being used against a generator.
No description provided by the author
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.
HandleResourceRequirementsV1 parses the limits and requests parameters if specified and returns ResourceRequirements.
HistoryViewerFor returns an implementation of HistoryViewer interface for the given schema kind.
No description provided by the author
No description provided by the author
No description provided by the author
MakeParams is a utility that creates generator parameters from a command line.
No description provided by the author
No description provided by the author
NewRollingUpdater creates a RollingUpdater from a client.
No description provided by the author
NewScaler get a scaler for a given resource.
No description provided by the author
ParseLabels turns a string representation of a label set into a map[string]string.
No description provided by the author
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
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
ValidateParams ensures that all required params are present in the params map.
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
BaseDeploymentGenerator: implement the common functionality of DeploymentBasicGeneratorV1, DeploymentBasicAppsGeneratorV1Beta1 and DeploymentBasicAppsGeneratorV1.
No description provided by the author
No description provided by the author
ClusterRoleBindingGeneratorV1 supports stable generation of a clusterRoleBinding.
ConfigMapGeneratorV1 supports stable generation of a configMap.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DaemonSetStatusViewer implements the StatusViewer interface.
No description provided by the author
DeploymentBasicAppsGeneratorV1 supports stable generation of a deployment under apps/v1 endpoint.
DeploymentBasicAppsGeneratorV1Beta1 supports stable generation of a deployment under apps/v1beta1 endpoint.
DeploymentBasicGeneratorV1 supports stable generation of a deployment.
No description provided by the author
No description provided by the author
DeploymentStatusViewer implements the StatusViewer interface.
No description provided by the author
GeneratorParam is a parameter for a generator TODO: facilitate structured json generator input schemes.
No description provided by the author
HorizontalPodAutoscalerV1Generator supports stable generation of a horizontal pod autoscaler.
No description provided by the author
NamespaceGeneratorV1 supports stable generation of a namespace.
No description provided by the author
PodDisruptionBudgetV1Generator supports stable generation of a pod disruption budget.
PodDisruptionBudgetV2Generator supports stable generation of a pod disruption budget.
A PreconditionError is returned when a resource fails to match the scale preconditions passed to kubectl.
PriorityClassV1Generator supports stable generation of a priorityClass.
ResourceQuotaGeneratorV1 supports stable generation of a resource quota.
RetryParams encapsulates the retry parameters used by kubectl's scaler.
RoleBindingGeneratorV1 supports stable generation of a roleBinding.
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.
RuntimeSort is an implementation of the golang sort interface that knows how to sort lists of runtime.Object.
ScalePrecondition describes a condition that must be true for the scale to take place If CurrentSize == -1, it is ignored.
SecretForDockerRegistryGeneratorV1 supports stable generation of a docker registry secret.
SecretForTLSGeneratorV1 supports stable generation of a TLS secret.
SecretGeneratorV1 supports stable generation of an opaque secret.
ServiceAccountGeneratorV1 supports stable generation of a service account.
No description provided by the author
No description provided by the author
TODO: is this really necessary?.
The only difference between ServiceGeneratorV1 and V2 is that the service port is named "default" in V1, while it is left unnamed in V2.
No description provided by the author
No description provided by the author
No description provided by the author
Sorting printer sorts list types before delegating to another printer.
No description provided by the author
No description provided by the author
StatefulSetStatusViewer implements the StatusViewer interface.
No description provided by the author
# Interfaces
Generator is an interface for things that can generate API objects from input parameters.
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.
StructuredGenerator is an interface for things that can generate API objects not using parameter injection.
# Type aliases
RollingUpdaterCleanupPolicy is a cleanup action to take after the deployment is complete.