Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentConfigController ¶
type DeploymentConfigController struct {
// contains filtered or unexported fields
}
DeploymentConfigController is responsible for creating a new deployment when:
- The config version is > 0 and,
- No existing deployment for that version exists.
The responsibility of constructing a new deployment resource from a config is delegated. See util.MakeDeployment for more details.
Use the DeploymentConfigControllerFactory to create this controller.
func (*DeploymentConfigController) Handle ¶
func (c *DeploymentConfigController) Handle(config *deployapi.DeploymentConfig) error
Handle processes config and creates a new deployment if necessary.
type DeploymentConfigControllerFactory ¶
type DeploymentConfigControllerFactory struct { // Client is an OpenShift client. Client osclient.Interface // KubeClient is a Kubernetes client. KubeClient kclient.Interface // Codec is used to encode/decode. Codec runtime.Codec }
DeploymentConfigControllerFactory can create a DeploymentConfigController which obtains DeploymentConfigs from a queue populated from a watch of all DeploymentConfigs.
func (*DeploymentConfigControllerFactory) Create ¶
func (factory *DeploymentConfigControllerFactory) Create() controller.RunnableController
Create creates a DeploymentConfigController.
Click to show internal directories.
Click to hide internal directories.