Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RollingDeploymentStrategy ¶
type RollingDeploymentStrategy struct {
// contains filtered or unexported fields
}
RollingDeploymentStrategy is a Strategy which implements rolling deployments using the upstream Kubernetes RollingUpdater.
Currently, there are some caveats:
1. When there is no existing prior deployment, deployment delegates to another strategy. 2. The interface to the RollingUpdater is not very clean.
These caveats can be resolved with future upstream refactorings to RollingUpdater[1][2].
[1] https://github.com/kubernetes/kubernetes/pull/7183 [2] https://github.com/kubernetes/kubernetes/issues/7851
func NewRollingDeploymentStrategy ¶
func NewRollingDeploymentStrategy(namespace string, oldClient kclient.Interface, tags client.ImageStreamTagsNamespacer, events record.EventSink, decoder runtime.Decoder, initialStrategy acceptingDeploymentStrategy, out, errOut io.Writer, until string) *RollingDeploymentStrategy
NewRollingDeploymentStrategy makes a new RollingDeploymentStrategy.
func (*RollingDeploymentStrategy) Deploy ¶
func (s *RollingDeploymentStrategy) Deploy(from *kapi.ReplicationController, to *kapi.ReplicationController, desiredReplicas int) error
Click to show internal directories.
Click to hide internal directories.