Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentController ¶
type DeploymentController struct {
// contains filtered or unexported fields
}
DeploymentController starts a deployment by creating a deployer pod which implements a deployment strategy. The status of the deployment will follow the status of the deployer pod. The deployer pod is correlated to the deployment with annotations.
When the deployment enters a terminal status:
- If the deployment finished normally, the deployer pod is deleted.
- If the deployment failed, the deployer pod is not deleted.
func NewDeploymentController ¶ added in v1.3.0
func NewDeploymentController(rcInformer, podInformer framework.SharedIndexInformer, kc kclientset.Interface, sa, image string, env []kapi.EnvVar, codec runtime.Codec) *DeploymentController
NewDeploymentController creates a new DeploymentController.
func (*DeploymentController) Handle ¶
func (c *DeploymentController) Handle(deployment *kapi.ReplicationController) error
Handle processes deployment and either creates a deployer pod or responds to a terminal deployment status. Since this controller started using caches, the provided rc MUST be deep-copied beforehand (see work() in factory.go).
func (*DeploymentController) Run ¶ added in v1.3.0
func (c *DeploymentController) Run(workers int, stopCh <-chan struct{})
Run begins watching and syncing.
Click to show internal directories.
Click to hide internal directories.