deployment

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

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

View Source
const (
	DefaultRetryDuration = 2 * time.Second
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new StatefulSet Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func ScaleDownLimitForOld

func ScaleDownLimitForOld(oldRSs []*apps.ReplicaSet, newRS *apps.ReplicaSet, deployment *apps.Deployment, partition intstrutil.IntOrString) int32

ScaleDownLimitForOld return the limitation of old replica sets under the partition settings.

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 MutatingWebhookEventHandler

type MutatingWebhookEventHandler struct {
	client.Reader
}

func (MutatingWebhookEventHandler) Create

func (MutatingWebhookEventHandler) Delete

func (MutatingWebhookEventHandler) Generic

func (MutatingWebhookEventHandler) Update

type ReconcileDeployment

type ReconcileDeployment struct {
	// client interface
	client.Client
	// contains filtered or unexported fields
}

ReconcileDeployment reconciles a Deployment object

func (*ReconcileDeployment) Reconcile

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL