{"modulePath":"github.com/openshift/origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package deployment\n\n## Types\n\n```go\ntype DeploymentController struct {\n\t// contains filtered or unexported fields\n}\n```\nDeploymentController 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.\n\nWhen the deployment enters a terminal status:\n\n 1. If the deployment finished normally, the deployer pod is deleted.\n 2. If the deployment failed, the deployer pod is not deleted.\n\n```go\nfunc NewDeploymentController(rcInformer, podInformer cache.SharedIndexInformer, kc kclientset.Interface, sa, image string, env []kapi.EnvVar, codec runtime.Codec) *DeploymentController\n```\nNewDeploymentController creates a new DeploymentController.\n\n```go\nfunc (c *DeploymentController) Handle(deployment *kapi.ReplicationController) error\n```\nHandle 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).\n\n```go\nfunc (c *DeploymentController) Run(workers int, stopCh \u003c-chan struct{})\n```\nRun begins watching and syncing.\n\n","path":"github.com/openshift/origin/pkg/deploy/controller/deployment","name":"deployment","synopsis":"","isRedistributable":true}
