Documentation
¶
Overview ¶
Describes deployment resource and associated controller
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultDeploymentHandler ¶
type DefaultDeploymentHandler struct {
// contains filtered or unexported fields
}
DefaultDeploymentRunner is the default implementation of DeploymentRunner interface.
func (*DefaultDeploymentHandler) HandleNew ¶
func (dh *DefaultDeploymentHandler) HandleNew(deployment *deployapi.Deployment) error
Handler for a deployment in the 'new' state.
func (*DefaultDeploymentHandler) HandlePending ¶
func (dh *DefaultDeploymentHandler) HandlePending(deployment *deployapi.Deployment) error
Handler for a deployment in the 'pending' state
func (*DefaultDeploymentHandler) HandleRunning ¶
func (dh *DefaultDeploymentHandler) HandleRunning(deployment *deployapi.Deployment) error
Handler for a deployment in the 'running' state
type DeploymentController ¶
type DeploymentController struct {
// contains filtered or unexported fields
}
A DeploymentController is responsible for executing Deployment objects stored in etcd
func NewDeploymentController ¶
func NewDeploymentController(kubeClient kubeclient.Interface, osClient osclient.Interface, initialEnvironment []api.EnvVar) *DeploymentController
NewDeploymentController creates a new DeploymentController.
func (*DeploymentController) Run ¶
func (dc *DeploymentController) Run(period time.Duration)
Run begins watching and synchronizing deployment states.
type DeploymentStateHandler ¶
type DeploymentStateHandler interface {
HandleNew(*deployapi.Deployment) error
HandlePending(*deployapi.Deployment) error
HandleRunning(*deployapi.Deployment) error
}
DeploymentStateHandler holds methods that handle the possible deployment states.
Click to show internal directories.
Click to hide internal directories.