Documentation
¶
Overview ¶
Package deployment contains all the logic for handling Kubernetes Deployments. It implements a set of strategies (rolling, recreate) for deploying an application, the means to rollback to previous versions, proportional scaling for mitigating risk, cleanup policy, and other useful features of Deployments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeploymentController ¶
type DeploymentController struct {
// contains filtered or unexported fields
}
DeploymentController is responsible for synchronizing Deployment objects stored in the system with actual running replica sets and pods.
type ReconcileDeployment ¶
type ReconcileDeployment struct {
// client interface
client.Client
// contains filtered or unexported fields
}
ReconcileDeployment reconciles a Deployment object
func (*ReconcileDeployment) Reconcile ¶
func (r *ReconcileDeployment) Reconcile(_ context.Context, request reconcile.Request) (res reconcile.Result, retErr error)
Reconcile reads that state of the cluster for a Deployment object and makes changes based on the state read and what is in the Deployment.Spec and Deployment.Annotations Automatically generate RBAC rules to allow the Controller to read and write ReplicaSets