{"modulePath":"github.phpd.cn/openshift/origin","version":"v3.6.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package deploymentconfig\n\n## Types\n\n```go\ntype DeploymentConfigController struct {\n\t// contains filtered or unexported fields\n}\n```\nDeploymentConfigController is responsible for creating a new deployment when:\n\n 1. The config version is \u003e 0 and,\n 2. No deployment for the version exists.\n\nThe controller reconciles deployments with the replica count specified on the config. The active deployment (that is, the latest successful deployment) will always be scaled to the config replica count. All other deployments will be scaled to zero.\n\nIf a new version is observed for which no deployment exists, any running deployments will be cancelled. The controller will not attempt to scale running deployments.\n\n```go\nfunc NewDeploymentConfigController(\n\tdcInformer cache.SharedIndexInformer,\n\trcInformer kcoreinformers.ReplicationControllerInformer,\n\toc osclient.Interface,\n\tkubeClientset kclientset.Interface,\n\tcodec runtime.Codec,\n) *DeploymentConfigController\n```\nNewDeploymentConfigController creates a new DeploymentConfigController.\n\n```go\nfunc (c *DeploymentConfigController) Handle(config *deployapi.DeploymentConfig) error\n```\nHandle implements the loop that processes deployment configs. Since this controller started using caches, the provided config MUST be deep-copied beforehand (see work() in factory.go).\n\n```go\nfunc (c *DeploymentConfigController) Run(workers int, stopCh \u003c-chan struct{})\n```\nRun begins watching and syncing.\n\n","path":"github.phpd.cn/openshift/origin/pkg/deploy/controller/deploymentconfig","name":"deploymentconfig","synopsis":"","isRedistributable":true}
